Skip to main content

ddwaf_object_set_string_literal

Function ddwaf_object_set_string_literal 

Source
pub unsafe extern "C" fn ddwaf_object_set_string_literal(
    object: *mut ddwaf_object,
    string: *const c_char,
    length: u32,
) -> *mut ddwaf_object
Expand description

Creates an object from a literal string and its length.

@param object Object to perform the operation on. (nonnull) @param string Literal string to initialise the object with, this string will not be copied and must remain valid for the lifetime of the object. (nonnull) @param length Length of the string.

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