The Joe Engine
Joe's engine programming playground
JoeEngine::MemAllocUtils Namespace Reference

Functions

void * alignedAlloc (size_t alignment, size_t size)
 Aligned allocation. More...
 

Function Documentation

◆ alignedAlloc()

void * JoeEngine::MemAllocUtils::alignedAlloc ( size_t  alignment,
size_t  size 
)

Aligned allocation.

Cross-platform function for making aligned memory allocations.

Parameters
alignmentthe specified alignment for the allocation.
sizehow large a buffer to allocate.
Returns
pointer to the newly allocated buffer.