Function rsmpeg::ffi::av_memdup[][src]

pub unsafe extern "C" fn av_memdup(p: *const c_void, size: u64) -> *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