12 #ifndef ROC_CORE_BUFFER_H_
13 #define ROC_CORE_BUFFER_H_
52 return (uint8_t*)data_;
Fixed-size dynamically-allocated byte buffer.
size_t size() const
Get buffer size in bytes.
static Buffer * container_of(void *data)
Get pointer to buffer from the pointer to its data.
Buffer(IPool &buffer_pool, size_t buffer_size)
Initialize empty buffer.
uint8_t * data()
Get buffer data.
Base class for object with reference counter.
#define ROC_CONTAINER_OF(ptr, type, member)
Cast a member of a structure out to the containing structure.
SharedPtr< Buffer > BufferPtr
Buffer smart pointer.
Base class for object with reference counter.
Shared ownership intrusive pointer.
Commonly used types and functions.
Maximum aligned data unit.