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_Alloc (uint32 bytes, MFHeap *pHeap=NULL)
 Allocates a block of memory.
void * MFHeap_Realloc (void *pMem, uint32 bytes)
 Re-allocates an allocated block of memory.
void MFHeap_Free (void *pMem)
 Frees a block of memory.
uint32 MFHeap_GetAllocSize (const void *pMemory)
 Get the size of an allocation.
MFHeapMFHeap_GetHeap (MFHeapType heap)
 Get a Heap pointer.
MFHeapMFHeap_GetTempHeap (MFHeap *pHeap)
 Gets the temp heap associated with a heap.
MFHeapMFHeap_SetActiveHeap (MFHeap *pHeap)
 Set active heap.
int MFHeap_SetAllocAlignment (int bytes)
 Set allocation alignment.
void MFHeap_Mark (MFHeap *pHeap=NULL)
 Push a heap marker.
void MFHeap_Release (MFHeap *pHeap=NULL)
 Pop a heap marker.
void MFHeap_RegisterCustomHeap (const MFMemoryCallbacks *pCallbacks, void *pUserData)
 Registers a custom heap.
void MFHeap_SetHeapOverride (MFHeap *pHeap)
 Set over-ride heap.
bool MFHeap_ValidateMemory (const void *pMemory)
 Validate a block of memory.
void * MFHeap_GetUncachedPointer (void *pPointer)
 Get an uncached pointer to a block of memory.
void MFHeap_FlushDCache ()
 Flushes the Data Cache.
void MFHeap_PushGroupName (const char *pGroupName)
 Push a memory allocation group.
void MFHeap_PopGroupName ()
 Pop a memory allocation group.

Generated on Sat Oct 28 16:27:34 2006 for MountFuji Engine by  doxygen 1.4.5