Mimallocator.expand

Expands the array by increasing its length with the required delta.

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

Parameters

b
Type: void[]

The array to be expanded (old size + delta).

delta
Type: size_t

The dimension to be increased.

Return Value

Type: bool

true if the expansion was successful, false if the array is null or the allocator has failed.

Meta