![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Fixed-size dynamically-allocated byte buffer. More...
#include <roc_core/buffer.h>

Public Member Functions | |
| Buffer (IPool &buffer_pool, size_t buffer_size) | |
| Initialize empty buffer. | |
| size_t | size () const |
| Get buffer size in bytes. | |
| uint8_t * | data () |
| Get buffer data. | |
Public Member Functions inherited from roc::core::RefCounted< Buffer, PoolAllocation > | |
| RefCounted () | |
| Initialize. | |
| RefCounted (const PoolAllocation &policy) | |
| Initialize. | |
| int | getref () const |
| Get reference counter. | |
| void | incref () const |
| Increment reference counter. | |
| void | decref () const |
| Decrement reference counter. | |
Static Public Member Functions | |
| static Buffer * | container_of (void *data) |
| Get pointer to buffer from the pointer to its data. | |
Additional Inherited Members | |
Protected Member Functions inherited from roc::core::PoolAllocation | |
| IPool & | pool () const |
| Get pool. | |
| PoolAllocation (IPool &pool) | |
| Initialize. | |
| template<class T > | |
| void | destroy (T &object) |
| Destroy object and return memory to pool. | |
Fixed-size dynamically-allocated byte buffer.
|
inline |
|
inline |