Memory

Memory
Scaleform::Memory
Declaration
class Memory;
Description

Memory maintains current heap and the global allocator, wrapping heap access functions. The main purpose of wrapping is to allow AllocInfo temporarily to be converted from a constant reference to an optional pointer argument for the allocation functions in MemoryHeap. Memory can be allocated either automatically (AllocAutoHeap) or in specified heaps (AllocInHeap).

Methods
Method 
Description 
Allocates memory. Alloc of size==0 will allocate a tiny block and return a valid pointer. 
Allocates memory block while automatically identifying heap and allocation id based on the specified address. 
Allocates memory in the specified heap. 
Checks if the memory arena is empty. 
Creates a memory arena that can be used by the heap for allocation purposes. 
Destroys the memory arena created for the heap. 
Detects the memory leaks. 
Free 
Frees allocated/reallocated block set by Alloc or Realloc
Returns a pointer to the global heap object through which all allocations takes place. 
Obtains the heap to which the memory allocation belongs. 
Obtains the heap to which the memory allocation belongs or NULL if not found. 
Reallocates the memory block allocated by Alloc to a new size. 
Sets the global heap object through which all memory allocations take place. 
File

SF_Memory.h