Fixed-size dynamically-allocated byte buffer.
More...
#include <buffer.h>
|
| | 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.
|
| | RefCounted () |
| | Initialize.
|
| int | getref () const |
| | Get reference counter.
|
| void | incref () const |
| | Increment reference counter.
|
| void | decref () const |
| | Decrement reference counter.
|
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()
| 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: