Skip to main content

ddwaf_object_set_array

Function ddwaf_object_set_array 

Source
pub unsafe extern "C" fn ddwaf_object_set_array(
    object: *mut ddwaf_object,
    capacity: u16,
    alloc: ddwaf_allocator,
) -> *mut ddwaf_object
Expand description

Creates an array object, for sequential storage.

@param object Object to perform the operation on. (nonnull) @param capacity Initial capacity of the array. @param alloc Allocator to use for memory allocation. (nonnull)

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