Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::core::BufferFactory< T > Class Template Reference

Buffer factory. More...

#include <buffer_factory.h>

Inheritance diagram for roc::core::BufferFactory< T >:
roc::core::NonCopyable< T >

Public Member Functions

 BufferFactory (IAllocator &allocator, size_t buff_size, bool poison)
 Initialization.
 
size_t buffer_size () const
 Get buffer size (number of elements in buffer).
 
SharedPtr< Buffer< T > > new_buffer ()
 Allocate new buffer.
 

Friends

class FactoryAllocation< BufferFactory >
 

Detailed Description

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

Buffer factory.

Definition at line 26 of file buffer_factory.h.

Constructor & Destructor Documentation

◆ BufferFactory()

template<class T >
roc::core::BufferFactory< T >::BufferFactory ( IAllocator allocator,
size_t  buff_size,
bool  poison 
)
inline

Initialization.

Definition at line 29 of file buffer_factory.h.

Member Function Documentation

◆ buffer_size()

template<class T >
size_t roc::core::BufferFactory< T >::buffer_size ( ) const
inline

Get buffer size (number of elements in buffer).

Definition at line 35 of file buffer_factory.h.

◆ new_buffer()

template<class T >
SharedPtr< Buffer< T > > roc::core::BufferFactory< T >::new_buffer ( )
inline

Allocate new buffer.

Definition at line 40 of file buffer_factory.h.

Friends And Related Symbol Documentation

◆ FactoryAllocation< BufferFactory >

template<class T >
friend class FactoryAllocation< BufferFactory >
friend

Definition at line 40 of file buffer_factory.h.


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