Skip to main content

ddwaf_object_at_key

Function ddwaf_object_at_key 

Source
pub unsafe extern "C" fn ddwaf_object_at_key(
    object: *const ddwaf_object,
    index: usize,
) -> *const ddwaf_object
Expand description

Returns the key contained in the container at the given index.

@param object The container from which to extract the object. @param index The position of the required object within the container.

@return The requested object or NULL if the index is out of bounds or the object is not a container.