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
28 virtual bool load() = 0;
29
36 virtual const unsigned char* buffer() const = 0;
37
45 virtual std::size_t available() const = 0;
46};
47
48}
49
50#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.