![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <buffer_pool.h>
Public Member Functions | |
BufferPool (IAllocator &allocator, size_t buff_size, bool poison) | |
Initialization. More... | |
size_t | buffer_size () const |
Get buffer size (number of elements in buffer). More... | |
![]() | |
Pool (IAllocator &allocator, size_t object_size, bool poison) | |
Initialization. More... | |
void * | allocate () |
Allocate new object. More... | |
void | deallocate (void *memory) |
Free previously allocated memory. More... | |
void | destroy (Buffer< T > &object) |
Destroy object and deallocate its memory. More... | |
Buffer pool.
Definition at line 23 of file buffer_pool.h.
|
inline |
Initialization.
Definition at line 26 of file buffer_pool.h.
|
inline |
Get buffer size (number of elements in buffer).
Definition at line 32 of file buffer_pool.h.