45 if (!size || size >
_size)
50 for (readIdx = 0; readIdx < size; ++readIdx)
63 if (!size || size >
_size)
65 for (std::size_t i = 0; i < size; ++i)
std::size_t read(Byte *data, std::size_t size)
Namespace where implementation for Rpleth support takes place.
simple circular buffer class
CircularBuffer(std::size_t size=DefaultSize)
std::size_t toRead() const
std::size_t getSize() const
std::size_t write(const Byte *data, std::size_t size)
std::vector< Byte > _buffer
Byte operator[](int idx) const
void fastForward(std::size_t offset)