Table of Contents

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.

Returns:
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.
Warning:
This method is not thread-safe. Fixed-Size Block pool access must be protected.
See also:
Parameters:
in_poolId  ID of the memory pool