浏览该文件的文档.
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</span> bool() const { return m_pPtr != nullptr; }
126 operator</span> T*&() { return m_pPtr; }
135 #endif // _AK_TOOLS_COMMON_AKALLOCATOR_H
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
介绍一下自己的项目。我们会竭力为您提供帮助。
来注册自己的项目,我们帮您快速入门,不带任何附加条件!
开始 Wwise 之旅