31 FreeList(
void* t_Start,
void* t_End,
size_t t_ElmSize,
size_t t_Alignment = 8,
size_t t_Offset = 0);
38 inline void* Obtain() noexcept;
43 inline void Return(
void* t_Ptr);
53 if (m_Next ==
nullptr)
FreeList * m_Next
Alias in memory to the next available block.
Definition: FreeList.h:48
Helpful for allocating/freeing objects of a certain size which have to be created/destroeyed dynamica...
Definition: FreeList.h:17
void * Obtain() noexcept
Obtain a chunk of memory of the size and alignment that this list was created with.
Definition: FreeList.h:51
void Return(void *t_Ptr)
Return a block of memory to the free list.
Definition: FreeList.h:63