|
| | FifoBuffer (size_t aCapacity=0) |
| | The constructor allocates memory at the heap and creates an instance. More...
|
| |
| void | setCapacity (size_t aCapacity) override |
| | Function allocates memory at the heap. More...
|
| |
| FifoBufferStatus< T > | getStatus () |
| | Function returns FifoBuffer status which can be used for optimization. More...
|
| |
| T * | getData () const override |
| | Function returns pointer to the internal buffer. More...
|
| |
| std::size_t | getSize () const |
| | Function returns current buffer size in values. More...
|
| |
| | FifoBufferBase (size_t aCapacity=0) |
| | The constructor creates an instance. More...
|
| |
| size_t | getReadPos () override |
| | Function returns current read position. More...
|
| |
| size_t | getWritePos () override |
| | Function returns current write position. More...
|
| |
| size_t | getSize () override |
| | Function returns current buffer size in values. More...
|
| |
| size_t | getRemainingSize () override |
| | Function returns remaining size in values. More...
|
| |
| size_t | getCapacity () const override |
| | Function returns buffer capacity in values. More...
|
| |
| virtual bool | isFull () |
| | Function returns true if buffer is full. More...
|
| |
| virtual void | reset () |
| | Function resets all positions to default value. More...
|
| |
| std::recursive_mutex & | getLock () override |
| | Function return locking object. More...
|
| |
| void | incrementReadPosition (size_t pos) override |
| | Function increments read position for N values. More...
|
| |
| void | incrementWritePosition (size_t pos) override |
| | Function increments write position for N values. More...
|
| |
| size_t | readSamples (T *samples, size_t samplesCount, bool incrementPosition=true) override |
| | Function reads the samples from buffer. More...
|
| |
| virtual size_t | readSamplesAt (T *samples, size_t samplesCount, bool incrementPosition=true, size_t readOffset=0) |
| | Function reads the samples from buffer. More...
|
| |
| size_t | writeSamples (const T *samples, size_t samplesCount, bool incrementPosition=true) override |
| | Function pushes the samples into buffer. More...
|
| |
|
| virtual size_t | read (T *samples, size_t samplesCount, size_t pos) |
| | Implements read from buffer. More...
|
| |
| virtual size_t | read (T *samples, size_t samplesCount) |
| | Function read from buffer from current location. More...
|
| |
| virtual size_t | write (const T *samples, size_t samplesCount, size_t pos) |
| | Implements write into buffer. More...
|
| |
| virtual size_t | write (const T *samples, size_t samplesCount) |
| | Implements write into buffer to current location. More...
|
| |
template<typename T>
class FifoBuffer< T >
The class FifoBuffer implements a first-in-first-out (FIFO) data structure.