KRRegion.allocate

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

Allocates n bytes. Allocation searches the list of available blocks until a free block with n or more bytes is found (first fit strategy). The block is split (if larger) and returned.

Parameters

nnumber of bytes to _allocate

Returns

A word-aligned buffer of n bytes, or null.