Allocator.reallocate

Increases or decreases the size of a memory block.

interface Allocator
shared pure nothrow @nogc
bool
reallocate
(
ref void[] p
,
size_t size
)

Parameters

p void[]

A pointer to the memory block.

size size_t

Size of the reallocated block.

Return Value

Type: bool

Pointer to the allocated memory.

Meta