mi_rezalloc

Reallocate memory to newsize bytes, with extra memory initialized to zero.

extern (C) @nogc pure @system nothrow
void*
mi_rezalloc
(
void* p
,
size_t newsize
)

Parameters

p
Type: void*

Pointer to a previously allocated block (or NULL).

newsize
Type: size_t

The new required size in bytes.

Return Value

Type: void*

A pointer to a re-allocated block of newsize bytes, or NULL if out of memory.

If the newsize is larger than the original allocated size of p, the extra bytes are initialized to zero.

Meta