6#include "pflib/packing/Reader.h"
8namespace pflib::packing {
37 void seek(
int off)
override;
48 bool good()
const override;
This class is a helper class for reading the buffer stored in the raw data format.
Definition BufferReader.h:26
BufferReader(const std::vector< uint8_t > &b)
Initialize a reader by wrapping a buffer to read.
Definition BufferReader.cxx:5
int tell() override
return where in the word we are in bytes
Definition BufferReader.cxx:12
~BufferReader()=default
default destructor so handle to buffer is given up
void seek(int off) override
go to the index off in bytes
Definition BufferReader.cxx:8
Reader & read(char *w, std::size_t count) override
read the next count bytes into array w and move the index
Definition BufferReader.cxx:16
bool good() const override
Return state of buffer.
Definition BufferReader.cxx:24
Reading a raw data stream with some underlying backend.
Definition Reader.h:19