Function MemHeader.allocateAligned

Allocate aligned memory (2^n)

void* allocateAligned (
  ulong byteSize,
  int alignment,
  MemFlags flags = MemFlags.Any
);

Wraps the allocateAbs() function for aligned operation.

Parameters

NameDescription
byteSize size to allocate
alignment the 'n' of the 2^n alignment
flags the MemFlags.

Returns

Adress of allocated memory or null