目录

Wwise SDK 2018.1.11

◆ GetBlock()

void* __cdecl AK::MemoryMgr::GetBlock ( AkMemPoolId  in_poolId )

Get a block from a Fixed-Size Block type pool. To be used with pools created with AkFixedSizeBlocksMode block management type, along with any of the block allocation types.

返回
A pointer to the start of the allocated memory (NULL if the system is out of memory) The size of the memory block is always in_uBlockSize, specified in AK::MemoryMgr::CreatePool.
警告
This method is not thread-safe. Fixed-Size Block pool access must be protected.
参见
参数
in_poolId ID of the memory pool