23#ifndef D2BLOCKALLOCATOR_H
24#define D2BLOCKALLOCATOR_H
68 d2Chunk* m_chunks {
nullptr};
74 int m_chunkSpacing {0};
The d2BlockAllocator class is responsible for managing memory allocation and deallocation....
Definition d2BlockAllocator.h:41
void Free(void *p, int32 size)
Frees a block of memory.
d2BlockAllocator()
Default constructor.
void * Allocate(int32 size)
Allocates a block of memory of the specified size.
void Clear()
Clears all allocated blocks.
~d2BlockAllocator()
Destructor.
constexpr int d2_blockSizeCount
Definition d2BlockAllocator.h:30
signed int int32
Definition d2Types.h:6
#define D2_API
Definition d2api.h:27