An allocator that uses the heap to allocate memory for use by the audio middleware. Audio middleware implementations should use this allocator to manage memory. This allocator will be registered in the plSingletonRegistry at initialization.
More...
#include <AudioSystemAllocator.h>
|
| plAudioMiddlewareAllocator (plAudioSystemAllocator *pParentAllocator) |
| Constructor.
|
|
| plAllocatorWithPolicy (plStringView sName, plAllocator *pParent=nullptr) |
|
| plAllocatorMixinReallocate (plStringView sName, plAllocator *pParent) |
|
| plAllocatorImpl (plStringView sName, plAllocator *pParent) |
|
virtual void * | Allocate (size_t uiSize, size_t uiAlign, plMemoryUtils::DestructorFunction destructorFunc=nullptr) override |
| Interface, do not use this directly, always use the new/delete macros below.
|
|
virtual void | Deallocate (void *pPtr) override |
|
virtual size_t | AllocatedSize (const void *pPtr) override |
| Returns the number of bytes allocated at this address.
|
|
virtual plAllocatorId | GetId () const override |
|
virtual Stats | GetStats () const override |
|
plAllocator * | GetParent () const |
|
virtual void * | Reallocate (void *pPtr, size_t uiCurrentSize, size_t uiNewSize, size_t uiAlign) |
|
|
AllocationPolicy | m_allocator |
|
plAllocatorId | m_Id |
|
plThreadID | m_ThreadID |
|
An allocator that uses the heap to allocate memory for use by the audio middleware. Audio middleware implementations should use this allocator to manage memory. This allocator will be registered in the plSingletonRegistry at initialization.
◆ plAudioMiddlewareAllocator()
Constructor.
- Parameters
-
pParentAllocator | An instance to the AudioSystemAllocator which will act as the parent of this allocator. |
The documentation for this class was generated from the following files:
- Code/EnginePlugins/AudioSystem/AudioSystemPlugin/Core/AudioSystemAllocator.h
- Code/EnginePlugins/AudioSystem/AudioSystemPlugin/Implementation/Core/AudioSystemAllocator.cpp