Skip to main content

ddwaf_object_find

Function ddwaf_object_find 

Source
pub unsafe extern "C" fn ddwaf_object_find(
    object: *const ddwaf_object,
    key: *const c_char,
    length: usize,
) -> *const ddwaf_object
Expand description

Returns the object within the given map with a key matching the provided one.

@param object The container from which to extract the object. @param key A string representing the key to find. @param length Length of the key.

@return The requested object or NULL if the key was not found or the object is not a container.