Version

menu_open
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.

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

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise