Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Fixed-size dynamically-allocated buffer. More...
#include <buffer.h>
Public Member Functions | |
Buffer (IPool &buffer_pool, size_t buffer_size) | |
Initialize empty buffer. More... | |
size_t | size () const |
Get number of elements in buffer. More... | |
T * | data () |
Get buffer data. More... | |
Public Member Functions inherited from roc::core::RefCounted< Buffer< T >, PoolAllocation > | |
RefCounted () | |
Initialize. More... | |
RefCounted (const PoolAllocation &policy) | |
Initialize. More... | |
int | getref () const |
Get reference counter. More... | |
void | incref () const |
Increment reference counter. More... | |
void | decref () const |
Decrement reference counter. More... | |
Static Public Member Functions | |
static Buffer * | container_of (void *data) |
Get pointer to buffer from the pointer to its data. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from roc::core::PoolAllocation | |
IPool & | pool () const |
Get pool. More... | |
PoolAllocation (IPool &pool) | |
Initialize. More... | |
template<class T > | |
void | destroy (T &object) |
Destroy object and return memory to pool. More... | |
Fixed-size dynamically-allocated buffer.
T | defines element type. |
|
inline |
|
inlinestatic |
|
inline |
|
inline |