av_memdup

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

extern (C) @nogc nothrow
void*
av_memdup
(
const(void)* p
,
size_t size
)

Meta