SharedAscendingPageAllocator.allocate

void[] allocate(size_t n) nothrow @nogc

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.

Parameters

nBytes to allocate

Returns

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