pub unsafe fn global_realloc(
    ptr: *mut u8,
    layout: Layout,
    new_size: usize
) -> *mut u8
Expand description

Reallocate a region of memory. Acts like realloc.

Safety

The caller must prevent use-after-free and double-free for ptr, and it must track the returned memory properly as in global_alloc.