Mount Fuji Engine  0.8b
Data Structures | Enumerations | Functions
Heap Management

Data Structures

struct  MFMemoryCallbacks
 Memory allocaiton callbacks. More...
 
struct  MFHeap
 Represents a Fuji Heap. More...
 

Enumerations

enum  MFHeapType {
  MFHT_Unknown = -1, MFHT_Active = 0, MFHT_ActiveTemporary, MFHT_Debug,
  MFHT_External, MFHT_Custom, MFHT_Max, MFHT_ForceInt = 0x7FFFFFFF
}
 Heap type enums. More...
 

Functions

void * MFHeap_AllocAndZero (size_t bytes, MFHeap *pHeap=NULL)
 Allocates a block of memory and zero's the contents. More...
 
void * MFHeap_Alloc (size_t bytes, MFHeap *pHeap=NULL)
 Allocates a block of memory. More...
 
void * MFHeap_Realloc (void *pMem, size_t bytes)
 Re-allocates an allocated block of memory. More...
 
MF_API void MFHeap_Free (void *pMem)
 Frees a block of memory. More...
 
MF_API size_t MFHeap_GetAllocSize (const void *pMemory)
 Get the size of an allocation. More...
 
MF_API MFHeapMFHeap_GetAllocHeap (const void *pMemory)
 Get the heap of an allocation. More...
 
MF_API MFHeapMFHeap_GetHeap (MFHeapType heap)
 Get a Heap pointer. More...
 
MF_API MFHeapMFHeap_GetTempHeap (MFHeap *pHeap)
 Gets the temp heap associated with a heap. More...
 
MF_API MFHeapMFHeap_GetDebugHeap ()
 Gets the debug heap. More...
 
MF_API MFHeapMFHeap_SetActiveHeap (MFHeap *pHeap)
 Set active heap. More...
 
MF_API int MFHeap_SetAllocAlignment (int bytes)
 Set allocation alignment. More...
 
MF_API void MFHeap_Mark (MFHeap *pHeap=NULL)
 Push a heap marker. More...
 
MF_API void MFHeap_Release (MFHeap *pHeap=NULL)
 Pop a heap marker. More...
 
MF_API void MFHeap_RegisterCustomHeap (const MFMemoryCallbacks *pCallbacks, void *pUserData)
 Registers a custom heap. More...
 
MF_API void MFHeap_SetHeapOverride (MFHeap *pHeap)
 Set over-ride heap. More...
 
MF_API bool MFHeap_ValidateMemory (const void *pMemory)
 Validate a block of memory. More...
 
MF_API bool MFHeap_ValidateHeap ()
 Validate the heap. More...
 
MF_API void * MFHeap_GetUncachedPointer (void *pPointer)
 Get an uncached pointer to a block of memory. More...
 
MF_API void MFHeap_FlushDCache ()
 Flushes the Data Cache. More...
 
MF_API void MFHeap_PushGroupName (const char *pGroupName)
 Push a memory allocation group. More...
 
MF_API void MFHeap_PopGroupName ()
 Pop a memory allocation group. More...
 

Detailed Description