Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::Buffer< T > Class Template Reference

Buffer. More...

#include <buffer.h>

Inheritance diagram for roc::core::Buffer< T >:
Collaboration diagram for roc::core::Buffer< T >:

Public Member Functions

 Buffer (BufferPool< T > &pool)
 Initialize empty buffer. More...
T * data ()
 Get buffer data. More...
size_t size () const
 Get maximum number of elements. More...
- Public Member Functions inherited from roc::core::RefCnt< Buffer< T > >
long getref () const
 Get reference counter. More...
void incref () const
 Increment reference counter. More...
void decref () const
 Decrement reference counter. More...

Static Public Member Functions

static Buffercontainer_of (void *data)
 Get pointer to buffer from the pointer to its data. More...


class RefCnt< Buffer >

Detailed Description

template<class T>
class roc::core::Buffer< T >


Definition at line 23 of file buffer.h.

Constructor & Destructor Documentation

template<class T>
roc::core::Buffer< T >::Buffer ( BufferPool< T > &  pool)

Initialize empty buffer.

Definition at line 26 of file buffer.h.

Member Function Documentation

template<class T>
static Buffer* roc::core::Buffer< T >::container_of ( void *  data)

Get pointer to buffer from the pointer to its data.

Definition at line 42 of file buffer.h.

template<class T>
T* roc::core::Buffer< T >::data ( )

Get buffer data.

Definition at line 32 of file buffer.h.

template<class T>
size_t roc::core::Buffer< T >::size ( ) const

Get maximum number of elements.

Definition at line 37 of file buffer.h.

The documentation for this class was generated from the following file: