pub unsafe extern "C" fn ddwaf_object_insert_key_nocopy(
map: *mut ddwaf_object,
key: *const c_char,
length: u32,
alloc: ddwaf_allocator,
) -> *mut ddwaf_objectExpand description
Inserts a new object into a map object, using a key and its length, but without creating a copy of the key.
@param map Map in which to insert the object. (nonnull) @param key The key for indexing purposes, this string will not be copied. (nonnull) @param length Length of the key. @param alloc Allocator to use for memory allocation. (nonnull)
@return A pointer to the newly inserted object or NULL if the operation failed.
@note The provided string must have been allocated with the same allocator used with ddwaf_object_destroy.