Table of Contents

AK::MemoryMgr Namespace Reference

Classes

struct   PoolStats
struct   PoolMemInfo

Enumerations

enum   DebugFlags { CheckOverwriteAtFree = 1, CheckOverwritePerFrame = 2, CheckOverwritePerVoice = 4 }

Functions

bool __cdecl  IsInitialized ()
void __cdecl  Term ()
AKRESULT __cdecl  Init (AkMemSettings *in_pSettings)
Memory Pools

AkMemPoolId __cdecl  CreatePool (void *in_pMemAddress, AkUInt32 in_uMemSize, AkUInt32 in_uBlockSize, AkUInt32 in_eAttributes, AkUInt32 in_uBlockAlign=0)
AKRESULT __cdecl  SetPoolName (AkMemPoolId in_poolId, const char *in_pszPoolName)
AkOSChar *__cdecl  GetPoolName (AkMemPoolId in_poolId)
AKRESULT __cdecl  SetMonitoring (AkMemPoolId in_poolId, bool in_bDoMonitor)
AKRESULT __cdecl  DestroyPool (AkMemPoolId in_poolId)
AKRESULT __cdecl  GetPoolStats (AkMemPoolId in_poolId, PoolStats &out_stats)
void __cdecl  GetPoolMemoryUsed (AkMemPoolId in_poolId, PoolMemInfo &out_memInfo)
AkInt32 __cdecl  GetNumPools ()
AkInt32 __cdecl  GetMaxPools ()
AKRESULT __cdecl  CheckPoolId (AkMemPoolId in_poolId)
AkMemPoolAttributes __cdecl  GetPoolAttributes (AkMemPoolId in_poolId)
Memory Allocation

void *__cdecl  Malloc (AkMemPoolId in_poolId, size_t in_uSize)
void *__cdecl  Realloc (AkMemPoolId in_poolId, void *in_pAlloc, size_t in_uSize)
AKRESULT __cdecl  Free (AkMemPoolId in_poolId, void *in_pMemAddress)
void *__cdecl  Malign (AkMemPoolId in_poolId, size_t in_uSize, AkUInt32 in_uAlignment)
AKRESULT __cdecl  Falign (AkMemPoolId in_poolId, void *in_pMemAddress)
Fixed-Size Blocks Memory Allocation Mode

void *__cdecl  GetBlock (AkMemPoolId in_poolId)
AKRESULT __cdecl  ReleaseBlock (AkMemPoolId in_poolId, void *in_pMemAddress)
AkUInt32 __cdecl  GetBlockSize (AkMemPoolId in_poolId)
void __cdecl  StartProfileThreadUsage (AkMemPoolId in_PoolId)
AkUInt32 __cdecl  StopProfileThreadUsage (AkMemPoolId in_PoolId)
void __cdecl  CheckForOverwrite (AkUInt32 in_uPoolID)

Detailed Description

Memory Manager namespace.

Remarks:
The functions in this namespace are thread-safe, unless stated otherwise.
See also: