Function av_memdup

Source
pub unsafe extern "C" fn av_memdup(
    p: *const c_void,
    size: usize,
) -> *mut c_void
Expand description

Duplicate a buffer with av_malloc().

@param p Buffer to be duplicated @param size Size in bytes of the buffer copied @return Pointer to a newly allocated buffer containing a copy of p or NULL if the buffer cannot be allocated