pub unsafe extern "C" fn ddwaf_object_set_string_nocopy(
object: *mut ddwaf_object,
string: *const c_char,
length: u32,
) -> *mut ddwaf_objectExpand description
Creates an object with the string pointer and length provided, without copying the string.
@param object Object to perform the operation on. (nonnull) @param string String pointer to initialise the object with, this string will not be copied and must remain valid for the lifetime of the object. (nonnull) @param length Length of the string.
@return A pointer to the passed object or NULL if the operation failed.
@note The provided string must have been allocated with the same allocator used with ddwaf_object_destroy.