MxEngine
Static Public Member Functions | Static Public Attributes | List of all members
MxEngine::ChunkAllocator Class Reference

Static Public Member Functions

static uint8_t * RawAlloc (size_t chunkCount)
 
static void Free (uint8_t *chunk)
 

Static Public Attributes

static constexpr size_t ChunkSize = 4096
 

Member Function Documentation

§ Free()

static void MxEngine::ChunkAllocator::Free ( uint8_t *  chunk)
inlinestatic

frees chunk allocated by RawAlloc

Parameters
chunkpointer to first chunk

§ RawAlloc()

static uint8_t* MxEngine::ChunkAllocator::RawAlloc ( size_t  chunkCount)
inlinestatic

allocates chunks of memory using malloc

Parameters
chunkCountnumber of chunk to allocate
Returns
pointer to first chunk

Member Data Documentation

§ ChunkSize

constexpr size_t MxEngine::ChunkAllocator::ChunkSize = 4096
static

chunk size, defaults to 4KB


The documentation for this class was generated from the following file: