Function Region.allocate

Allocates n bytes with at least alignment-byte alignment.

void[] allocate(
  size_t n
) nothrow @nogc;

Parameters

NameDescription
n number of bytes requested

Returns

A slice of exactly n bytes, or a zero-length slice with null .ptr if the region cannot satisfy the request.