Warning: you were redirected to the latest documentation corresponding to your major release ( 2024.1.1.8691 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Go to the documentation of this file.
29 #ifndef _AK_TOOLS_COMMON_AKALLOCATOR_H
30 #define _AK_TOOLS_COMMON_AKALLOCATOR_H
55 return malloc(in_uSize);
58 virtual void Free(
void* in_pMemAddress)
override
71 return _aligned_malloc(in_uSize, in_uAlignment);
73 return aligned_alloc(in_uAlignment, in_uSize);
84 return realloc(in_pMemAddress, in_uSize);
96 return _aligned_realloc(in_pMemAddress, in_uSize, in_uAlignment);
98 AKASSERT(!
"ReallocAligned is not supported: using realloc");
99 return realloc(in_pMemAddress, in_uSize);
109 : m_pAlloc(in_pAlloc),
118 m_pAlloc->
Free(m_pPtr);
125 explicit operator bool()
const {
return m_pPtr !=
nullptr; }
126 operator T*&() {
return m_pPtr; }
135 #endif // _AK_TOOLS_COMMON_AKALLOCATOR_H
Definition of data structures for AkAudioObject.
virtual void * Malign(size_t in_uSize, size_t in_uAlignment, const char *, AkUInt32) override
SafeAllocator(AK::IAkPluginMemAlloc *in_pAlloc)
virtual void Free(void *in_pMemAddress) override
virtual void * Realloc(void *in_pMemAddress, size_t in_uSize, const char *, AkUInt32) override
virtual void * Malloc(size_t in_uSize, const char *, AkUInt32) override
virtual void * ReallocAligned(void *in_pMemAddress, size_t in_uSize, size_t in_uAlignment, const char *, AkUInt32) override
#define AKASSERT(Condition)
virtual void Free(void *in_pMemAddress)=0
uint32_t AkUInt32
Unsigned 32-bit integer.
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