[][src]Function ffmpeg_dev::sys::av_memdup

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

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