30 #ifndef _AK_TOOLS_COMMON_AKALLOCATOR_H
31 #define _AK_TOOLS_COMMON_AKALLOCATOR_H
33 #include <AK/SoundEngine/Common/IAkPluginMemAlloc.h>
44 virtual void*
Malloc(
size_t in_uSize)
46 return malloc(in_uSize);
49 virtual void Free(
void* in_pMemAddress)
60 : m_pAlloc(in_pAlloc),
69 m_pAlloc->
Free(m_pPtr);
76 explicit operator</span> bool() const { return m_pPtr != nullptr; }
77 operator</span> T*&() { return m_pPtr; }
86 #endif // _AK_TOOLS_COMMON_AKALLOCATOR_H
SafeAllocator(AK::IAkPluginMemAlloc *in_pAlloc)
virtual void Free(void *in_pMemAddress)
virtual void Free(void *in_pMemAddress)=0
virtual void * Malloc(size_t in_uSize)
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