The OpenD Programming Language

SharedAlignedBlockList.allocate

Returns a chunk of memory of size n It finds the first node in the AlignedBlockNode list which has available memory, and moves it to the front of the list.

All empty nodes which cannot return new memory, are removed from the list.

struct SharedAlignedBlockList(Allocator, ParentAllocator, ulong theAlignment = (1 << 21))
version(StdDdoc)
static if(hasMember!(ParentAllocator, "alignedAllocate"))
void[]
allocate
(
size_t n
)

Parameters

n size_t

bytes to allocate

Return Value

Type: void[]

A chunk of memory of the required length or null on failure or

Meta