Skip to main content

ddwaf_object_clone

Function ddwaf_object_clone 

Source
pub unsafe extern "C" fn ddwaf_object_clone(
    source: *const ddwaf_object,
    destination: *mut ddwaf_object,
    alloc: ddwaf_allocator,
) -> *mut ddwaf_object
Expand description

Creates a deep copy of the source object into the destination object.

@param source The source object to clone from. (nonnull) @param destination The destination object to clone into. (nonnull) @param alloc Allocator to use for memory allocation. (nonnull)

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