Implementation of a ring buffer.
More...
#include <circularbuffer.hpp>
Implementation of a ring buffer.
Definition at line 43 of file circularbuffer.hpp.
◆ CircularBuffer()
CircularBuffer::CircularBuffer |
( |
std::size_t |
size = DefaultSize | ) |
|
◆ ~CircularBuffer()
Leosac::Module::Rpleth::CircularBuffer::~CircularBuffer |
( |
| ) |
|
|
default |
◆ fastForward()
void CircularBuffer::fastForward |
( |
std::size_t |
offset | ) |
|
◆ getSize()
std::size_t CircularBuffer::getSize |
( |
| ) |
const |
◆ isEmpty()
bool CircularBuffer::isEmpty |
( |
| ) |
const |
◆ operator[]()
Byte CircularBuffer::operator[] |
( |
int |
idx | ) |
const |
◆ read()
std::size_t CircularBuffer::read |
( |
Byte * |
data, |
|
|
std::size_t |
size |
|
) |
| |
◆ reset()
void CircularBuffer::reset |
( |
| ) |
|
◆ toRead()
std::size_t CircularBuffer::toRead |
( |
| ) |
const |
◆ write()
std::size_t CircularBuffer::write |
( |
const Byte * |
data, |
|
|
std::size_t |
size |
|
) |
| |
◆ _buffer
std::vector<Byte> Leosac::Module::Rpleth::CircularBuffer::_buffer |
|
private |
◆ _rIdx
std::size_t Leosac::Module::Rpleth::CircularBuffer::_rIdx |
|
private |
◆ _size
std::size_t Leosac::Module::Rpleth::CircularBuffer::_size |
|
private |
◆ _toRead
std::size_t Leosac::Module::Rpleth::CircularBuffer::_toRead |
|
private |
◆ _wIdx
std::size_t Leosac::Module::Rpleth::CircularBuffer::_wIdx |
|
private |
◆ DefaultSize
const std::size_t Leosac::Module::Rpleth::CircularBuffer::DefaultSize = 8192 |
|
staticprivate |
The documentation for this class was generated from the following files: