realloc

Reallocates ptr with size Tries to avoid actually doing a new allocation if possible.

final @nogc static pragma(inline) @trusted
void
realloc
(
bool threadSafe = false
)
(
ref void* ptr
,
size_t size
)

Parameters

threadSafe

Should this operation be thread safe? Default false.

ptr void*

Pointer to entry to be reallocated.

size size_t

Size of the new entry.

Meta