Mimallocator.alignedReallocate

Re-allocate memory to newsize bytes aligned by alignment.

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

Parameters

b
Type: void[]

The array to be reallocated.

newSize
Type: size_t

The new size that the array will take.

alignment
Type: 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