The memory allocator used by the memory manager.
More...
#include <mlMemoryAllocator.h>
The memory allocator used by the memory manager.
Definition at line 29 of file mlMemoryAllocator.h.
◆ allocate()
| void * MLMemoryAllocator::allocate |
( |
size_t | size | ) |
|
|
static |
Allocates memory of the given size. Uses malloc if no allocationCallback was specified.
◆ deallocate()
| void MLMemoryAllocator::deallocate |
( |
void * | data | ) |
|
|
static |
Deallocates memory. Uses free if no deallocationCallback was specified.
◆ initialize()
Initializes the memory allocator. This may be called only once; this way, it is assured that only one allocator is used throughout an application.
- Parameters
-
| allocationCallback | The callback function to allocate memory. |
| deallocationCallback | The callback function to deallocate memory. |
The documentation for this class was generated from the following file: