Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Fixed-size dynamically-allocated byte 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 buffer size in bytes. More... | |
uint8_t * | data () |
Get buffer data. More... | |
Public Member Functions inherited from roc::core::RefCounted< Buffer, 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 byte buffer.
roc::core::Buffer::Buffer | ( | IPool & | buffer_pool, |
size_t | buffer_size | ||
) |
Initialize empty buffer.
|
inlinestatic |
|
inline |
|
inline |