#include <daeMemorySystem.h>
Static Public Member Functions | |
static DLLSPEC daeRawRef | alloc (daeString pool, size_t n) |
static DLLSPEC void | dealloc (daeString pool, daeRawRef mem) |
The daeMemorySystem
class is a simple wrapper for memory operations. Every allocation passes a string pool name such that in the future different pools can be used based on allocation type. Currently the system is just a pass-through to system malloc
.
Definition at line 20 of file daeMemorySystem.h.
Provides a wrapper malloc with pool field.
pool | String name of the pool to use for this allocation. | |
n | Number of bytes to allocate. |
Provides a wrapper free with pool argument.
pool | Pool the memory should be freed from. | |
mem | Memory to be freed. |