ML Reference
|
The memory allocator used by the memory manager. More...
#include <mlMemoryAllocator.h>
Static Public Member Functions | |
static void | initialize (MLAllocationCallback allocationCallback, MLDeallocationCallback deallocationCallback) |
Initializes the memory allocator. More... | |
static void * | allocate (size_t size) |
Allocates memory of the given size. Uses malloc if no allocationCallback was specified. More... | |
static void | deallocate (void *data) |
Deallocates memory. Uses free if no deallocationCallback was specified. More... | |
The memory allocator used by the memory manager.
Definition at line 29 of file mlMemoryAllocator.h.
|
static |
Allocates memory of the given size. Uses malloc
if no allocationCallback was specified.
|
static |
Deallocates memory. Uses free
if no deallocationCallback was specified.
|
static |
Initializes the memory allocator.
This may be called only once; this way, it is assured that only one allocator is used throughout an application.
allocationCallback | The callback function to allocate memory. |
deallocationCallback | The callback function to deallocate memory. |