Skip to main content

ddwaf_object_insert

Function ddwaf_object_insert 

Source
pub unsafe extern "C" fn ddwaf_object_insert(
    array: *mut ddwaf_object,
    alloc: ddwaf_allocator,
) -> *mut ddwaf_object
Expand description

Inserts a new object into an array object.

@param array Array in which to insert the object. (nonnull) @param alloc Allocator to use for memory allocation. (nonnull)

@return A pointer to the newly inserted object or NULL if the operation failed.