The OpenD Programming Language

KRRegion.allocate

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.

struct KRRegion(ParentAllocator = NullAllocator)
void[]
allocate
(
size_t n
)

Return Value

Type: void[]

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

Meta