Mimallocator.alignedReallocate

Re-allocate memory to newsize bytes aligned by alignment.

struct Mimallocator
@system @nogc pure nothrow shared
bool
alignedReallocate
(
ref void[] b
,
size_t newSize
,)

Parameters

b void[]

The array to be reallocated.

newSize size_t

The new size that the array will take.

alignment uint

The minimal alignment of the allocated memory.

Return Value

Type: bool

true if the reallocatiom was successful, false if the allocator has failed

Meta