Mimallocator.expand

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

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

Parameters

b void[]

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

delta 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