版本

    其他文档

menu_open

AK::MemoryMgr Namespace Reference

Classes

struct   PoolStats
struct   PoolMemInfo

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)
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)

Detailed Description

Memory Manager namespace.

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

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅