Allocates an aligned memory chunk.
Functionally equivalent to Visual C++ _aligned_malloc.
Do not mix allocations with different alignment.
Important: alignedMalloc(0) does not necessarily
return null, and its result
_has_ to be freed with alignedFree.
Important: Don't call that often in a real-time thread
without amortization (keep a capacity).
If you need to allocate from nextBuffer, do
prefer the use of Vec which doesn't shrink,
and will reuse the allocation.
Allocates an aligned memory chunk. Functionally equivalent to Visual C++ _aligned_malloc. Do not mix allocations with different alignment.
Important: alignedMalloc(0) does not necessarily return null, and its result _has_ to be freed with alignedFree.
Important: Don't call that often in a real-time thread without amortization (keep a capacity). If you need to allocate from nextBuffer, do prefer the use of Vec which doesn't shrink, and will reuse the allocation.