Mimallocator.allocate

Allocates the size expressed in bytes.

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

Parameters

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