byteme
C++ wrappers for buffered inputs
Loading...
Searching...
No Matches
Reader.hpp
Go to the documentation of this file.
1#ifndef BYTEME_READER_HPP
2#define BYTEME_READER_HPP
3
4#include <cstddef>
5
12namespace byteme {
13
17class Reader {
18public:
19 virtual ~Reader() = default;
20
29 virtual bool load() = 0;
30
37 virtual const unsigned char* buffer() const = 0;
38
46 virtual std::size_t available() const = 0;
47};
48
49}
50
51#endif
Virtual class for reading bytes from a source.
Definition Reader.hpp:17
virtual std::size_t available() const =0
virtual const unsigned char * buffer() const =0
virtual bool load()=0
Simple byte readers and writers.