Skip to content

MTY_Dup

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Duplicate a buffer.

void *MTY_Dup(
    const void * mem,
    size_t       size
);

Parameters

mem (const void *)

Buffer to duplicate.

size (size_t)

Size in bytes of mem.

Return value

void *

This function can not return NULL. It will call abort() on failure.

The returned buffer must be destroyed with MTY_Free.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Memory

Clone this wiki locally