Heapclass encapsulates a memory allocation heap.
||Returns the total size of allocated blocks in a heap.|
Heap(const char *name = nullptr, uint32 pool = kMemoryDefaultPoolSize, uint32 flags = 0);
||The name of the heap.|
||The size of the memory pools allocated in the heap, in bytes.|
||The heap flags. See below for possible values.|
Heapclass organizes a set of memory pools from which blocks of memory are allocated by the Memory Manager. Heaps are generally managed internally by the engine, but it is possible to create new dedicated heaps for custom class types by subclassing from the
flagsparameter can be a combination (through logical OR) of the following constants.
||Do not use a mutex to protect the heap from simultaneous access from multiple threads.|