SharedBorrowedRegion.allocate

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

Allocates n bytes of memory. The allocation is served by atomically incrementing a pointer which keeps track of the current used space.

Parameters

nnumber of bytes to allocate

Returns

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

be satisfied.