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
10namespace byteme {
11
15class Reader {
16public:
17 virtual ~Reader() = default;
18
26 virtual bool load() = 0;
27
34 virtual const unsigned char* buffer() const = 0;
35
43 virtual size_t available() const = 0;
44};
45
46}
47
48#endif
Virtual class for reading bytes from a source.
Definition Reader.hpp:15
virtual const unsigned char * buffer() const =0
virtual bool load()=0
virtual size_t available() const =0
Simple byte readers and writers.