AscendingPageAllocator.allocate

Rounds the allocation size to the next multiple of the page size. The allocation only reserves a range of virtual pages but the actual physical memory is allocated on demand, when accessing the memory.

struct AscendingPageAllocator
nothrow @nogc
void[]
allocate
(
size_t n
)

Parameters

n size_t

Bytes to allocate

Return Value

Type: void[]

null on failure or if the requested size exceeds the remaining capacity.

Meta