|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Memory allocator interface. More...
#include <iallocator.h>
Public Member Functions | |
| virtual void * | allocate (size_t size)=0 |
| Allocate memory. | |
| virtual void | deallocate (void *)=0 |
| Deallocate previously allocated memory. | |
| template<class T > | |
| void | destroy_object (T &object) |
| Destroy object and deallocate its memory. | |
Memory allocator interface.
Definition at line 23 of file iallocator.h.
|
pure virtual |
Allocate memory.
size bytes or NULL if memory can't be allocated. Implemented in roc::core::HeapAllocator.
|
pure virtual |
Deallocate previously allocated memory.
Implemented in roc::core::HeapAllocator.
|
inline |
Destroy object and deallocate its memory.
Definition at line 37 of file iallocator.h.