Mimallocator.allocate

Allocates the size expressed in bytes.

struct Mimallocator
@trusted @nogc pure nothrow shared
void[]
allocate
(
size_t bytes
)

Parameters

bytes size_t

Number of bytes to allocate.

Return Value

Type: void[]

An array with allocated memory or null if out of memory. Returns null if called with size 0.

Meta