CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
Enumerations | Functions
CRM64Pro::CMem Namespace Reference

CMem: CRM64Pro Memory Manager. More...

Enumerations

enum  eMemStatsLevel { MSL_NULL = 0 , MSL_NORMAL = 2 , MSL_HIGH = 4 , MSL_VERBOSE = 8 }
 Memory stats gathering level. More...
 

Functions

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 setMsgOutput (Sint32 iLM, const char *szFile)
 Set the memory log mode.
 
Sint32 setModuleName (Uint32 iModule, const char *szName)
 Set the memory log mode.
 
void * alloc (size_t iSize, Uint32 iModule)
 Reserve a memory block using C64 Memory Manager.
 
void * calloc (size_t iNum, size_t iSize, Uint32 iModule)
 Reserve a memory block using C64 Memory Manager and reset it to 0.
 
void * realloc (void *pMem, size_t iSize, Uint32 iModule)
 Reallocate a memory block using C64 Memory Manager.
 
void * alloc_aligned (size_t iSize, size_t iAlign, Uint32 iModule)
 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 ()
 Destroy all internal memory used by the Low-Level Allocator.
 
Sint32 info (Sint32 iMode)
 Output useful information about the memory usage.
 

Detailed Description

CMem: CRM64Pro Memory Manager.