版本

menu_open
Wwise SDK 2023.1.8
AkObjectPool.h
Audiokinetic namespace
static constexpr SizeType kInvalidIndex
Definition: AkObjectPool.h:63
static constexpr void Unlock()
Definition: AkObjectPool.h:48
AKSOUNDENGINE_API void Free(AkMemPoolId in_poolId, void *in_pMemAddress)
AKRESULT
Standard function call result.
Definition: AkTypes.h:131
AK_NODISCARD ValueType * AllocateZeroFilled()
Initialize memory before returning.
Definition: AkObjectPool.h:149
ObjectPool()=default
AK_NODISCARD bool IsFull() const
Definition: AkObjectPool.h:129
AKRESULT Init(SizeType count)
Definition: AkObjectPool.h:84
@ AK_Success
The operation was successful.
Definition: AkTypes.h:133
ObjectPool(ObjectPool &&)=delete
#define AK_NODISCARD
Definition: AkPlatforms.h:157
@ AK_InvalidParameter
Something is not within bounds, check the documentation of the function returning this code.
Definition: AkTypes.h:149
AK_NODISCARD bool IsEmpty() const
Definition: AkObjectPool.h:130
uint8_t data[sizeof(ValueType)]
Definition: AkObjectPool.h:69
friend struct UnitTest::ObjectPoolHelper
Definition: AkObjectPool.h:206
#define AKASSERT(Condition)
Definition: AkAssert.h:67
AK_NODISCARD ValueType * Allocate()
Definition: AkObjectPool.h:135
AKRESULT Deallocate(ValueType *data)
Definition: AkObjectPool.h:164
AK_NODISCARD SizeType Size() const
Definition: AkObjectPool.h:126
ObjectPool(const ObjectPool &)=delete
AK_NODISCARD SizeType Capacity() const
Definition: AkObjectPool.h:127
ObjectPool & operator=(const ObjectPool &)=delete
ObjectPool & operator=(ObjectPool &&)=delete
An object pool of N reusable objects with one allocation.
Definition: AkObjectPool.h:59
uint32_t AkUInt32
Unsigned 32-bit integer
AkUInt32 SizeType
Definition: AkObjectPool.h:62
static constexpr void Lock()
Definition: AkObjectPool.h:47
@ AK_InsufficientMemory
Memory error.
Definition: AkTypes.h:161
AkForceInline void AkMemSet(void *pDest, AkInt32 iVal, AkUInt32 uSize)
const ValueType & Data() const
Definition: AkObjectPool.h:68

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅