12 #ifndef ROC_CORE_BUFFER_H_
13 #define ROC_CORE_BUFFER_H_
40 , size_(buffer_size) {
Fixed-size dynamically-allocated buffer.
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.
T * data()
Get buffer data.
size_t size() const
Get number of elements in buffer.
Allocation policy for objects allocated using IPool.
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.
Base class for object with reference counter.
Commonly used types and functions.
Maximum aligned data unit.