76 static void*
reallocate(
void* ptr,
size_t newSize);
105 static constexpr bool DEBUG =
false;
108 static constexpr size_t BUFFER_SIZE = 4096;
111 static uint8_t mGlobalBuffer[BUFFER_SIZE];
114 static FreeBlock* mFreeList;
Definition GlobalBufferMemoryManager.h:37
static void * allocate(size_t size)
Allocate memory from the global buffer.
Definition GlobalBufferMemoryManager.cpp:52
static void * reallocate(void *ptr, size_t newSize)
Resize allocated memory.
Definition GlobalBufferMemoryManager.cpp:158
static size_t getLargestFreeBlock()
Get the size of the largest available free block.
Definition GlobalBufferMemoryManager.cpp:211
static void deallocate(void *ptr)
Deallocate previously allocated memory.
Definition GlobalBufferMemoryManager.cpp:115
static void initialize()
Initialize the memory manager.
Definition GlobalBufferMemoryManager.cpp:45
static size_t getTotalFreeMemory()
Get the total free memory available in the buffer.
Definition GlobalBufferMemoryManager.cpp:199
Contains all classes and functions related to the Uniot Core.