Fixed-size dynamically-allocated byte buffer.
More...
#include <roc_core/buffer.h>
Fixed-size dynamically-allocated byte buffer.
- See also
- BufferFactory, Slice.
Definition at line 40 of file buffer.h.
◆ Buffer()
roc::core::Buffer::Buffer |
( |
IPool & |
buffer_pool, |
|
|
size_t |
buffer_size |
|
) |
| |
◆ container_of()
static Buffer* roc::core::Buffer::container_of |
( |
void * |
data | ) |
|
|
inlinestatic |
Get pointer to buffer from the pointer to its data.
Definition at line 56 of file buffer.h.
◆ data()
uint8_t* roc::core::Buffer::data |
( |
| ) |
|
|
inline |
Get buffer data.
Definition at line 51 of file buffer.h.
◆ size()
size_t roc::core::Buffer::size |
( |
| ) |
const |
|
inline |
Get buffer size in bytes.
Definition at line 46 of file buffer.h.
The documentation for this class was generated from the following file: