| CRM64Pro GDK v0.15.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::CMem
Core modules » Main

CMem: CRM64Pro Memory Manager. More...

## Enumerations
enum | eMemStatsLevel { MSL_NULL = 0 , MSL_NORMAL = 2 , MSL_HIGH = 4 , MSL_VERBOSE = 8 , MSL_DEBUG = 16 }
| Memory statistics verbosity. More...

## Functions
Sint32 | setModuleName (eMemoryModule eMM, const char *szName)
| Set the name for a custom user module.
void | setVerboseSampleInterval (Sint32 iInterval)
| Set time interval between each sample when the stats level is ::MSL_VERBOSE. By default it is set to 500ms.
void | setLogLevel (eMemStatsLevel eMSL)
| Set the memory stats gathering level.
void | setBreakOnAlloc (Uint32 iAllocID)
| Set the Allocation ID to break on.
void * | alloc (size_t iSize, eMemoryModule eMM=CMM_C64)
| Reserve a memory block using C64 Memory Manager.
void * | calloc (size_t iNum, size_t iSize, eMemoryModule eMM=CMM_C64)
| Reserve a memory block using C64 Memory Manager and reset it to 0.
void * | realloc (void *pMem, size_t iSize, eMemoryModule eMM=CMM_C64)
| Reallocate a memory block using C64 Memory Manager.
void * | alloc_aligned (size_t iSize, size_t iAlign=CMEM_ALIGNMENT, eMemoryModule eMM=CMM_C64)
| Reserve a memory block using C64 Memory Manager aligned to the desired value.
void | free (void *pMem)
| Deallocate a memory block using C64 Memory Manager.
void | free_aligned (void *pMem)
| Deallocate a memory block using C64 Memory Manager.
void | destroy ()
| Releases the internal heap and displays final stats.
Sint32 | info (Sint32 iMode=1)
| Output useful information about the memory usage.

## Detailed Description

CMem: CRM64Pro Memory Manager.