API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

Memory

Centralized memory management services allow applications and modules to allocate, re-allocate and free up memory, using functions with c-stdlib syntax so that applications can use the same heap without having to create object instances for dealing with memory operations. Brew MP tracks memory by module, re-using any leaked memory to protect the system heap. It detects any un-released memory and automatically frees it when the module is released (i.e., when the ref count of the module goes to zero). By default, malloc() zero-initializes all allocated memory, but developers can disable this with the ALLOC_NO_ZMEM flag for better bulk-allocation performance. The platform manages memory on a per-process basis, and each process has a heap that grows until it reaches the limit specified by the definition of that process.

ClassAEECLSID_MemCache1
AEECLSID_MemGroup
AEECLSID_MemSpace
AEECLSID_Realloc
Data structureMemMapInfo
MemRegionInfo
Memory Region Access Permissions Bits
Memory Region Flags
Memory Space Cache Flush
Memory Space Cache Operations
PhysMemInfo
struct MemCacheInfo
struct PhysMemInfo
GroupAEEGROUPID_MEMORY_STATS
HelperIREALLOC_ERRMALLOCREC()
IREALLOC_ERRMALLOCRECEX()
IREALLOC_FREEIF()
IRealloc_ErrMalloc()
IRealloc_ErrMallocName()
IRealloc_ErrMallocNameNoZI()
IRealloc_ErrMallocNoZI()
IRealloc_Free()
_HEAP_DEBUG
InterfaceIHeap
IMemCache1
IMemGroup
IMemMap
IMemRegion
IMemRegion1
IMemSpace
IRamCache
IRealloc
IRscPool
MethodIHEAP_AddRef()
IHEAP_CheckAvail()
IHEAP_Free()
IHEAP_GetMemStats()
IHEAP_GetModuleMemStats()
IHEAP_Malloc()
IHEAP_MallocRec()
IHEAP_Realloc()
IHEAP_Release()
IHEAP_StrDup()
IMemCache1_ClearCache()
IMemCache1_GetCacheInfo()
IMemGroup_CreateRegion()
IMemMap_AddRef()
IMemMap_GetInfo()
IMemMap_QueryInterface()
IMemMap_Release()
IMemMap_Resize()
IMemRegion1_GrantAccess()
IMemRegion_AddRef()
IMemRegion_GetInfo()
IMemRegion_QueryInterface()
IMemRegion_Release()
IMemSpace_MapRegion()
IMemSpace_TranslateVirtualToRegion()
IRSCPOOL_Malloc()
IRamCache_Add()
IRamCache_AddRef()
IRamCache_Find()
IRamCache_QueryInterface()
IRamCache_Release()
IRamCache_Remove()
IRamCache_RemoveAll()
IRamCache_RemoveExpired()
IRamCache_SetMaxEntries()
IRamCache_SetMaxSize()
IRamCache_SetTTL()
IRealloc_AddRef()
IRealloc_ErrRealloc()
IRealloc_ErrReallocName()
IRealloc_ErrReallocNameNoZI()
IRealloc_ErrReallocNoZI()
IRealloc_QueryInterface()
IRealloc_Release()
IRscPool_Free()
IRscPool_HoldRsc()
IRscPool_ReleaseRsc()