Region.allocate

void[] allocate(size_t n) pure nothrow @trusted @nogc

Allocates n bytes of memory. The shortest path involves an alignment adjustment (if alignment > 1), an increment, and a comparison.

Parameters

nnumber of bytes to allocate

Returns

A properly-aligned buffer of size n or null if request could not

be satisfied.