Region.alignedAllocate

void[] alignedAllocate(size_t n, uint a) pure nothrow @trusted @nogc

Allocates n bytes of memory aligned at alignment a.

Parameters

nnumber of bytes to allocate
aalignment for the allocated block

Returns

Either a suitable block of n bytes aligned at a, or null.