AscendingPageAllocator.alignedAllocate

void[] alignedAllocate(size_t n, uint a) 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.

The allocated memory is aligned to the specified alignment a.

Parameters

nBytes to allocate
aAlignment

Returns

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