byteme
Read/write bytes from various sources
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
32 virtual std::size_t read(unsigned char* buffer, std::size_t n) = 0;
33};
34
35}
36
37#endif
Virtual class for reading bytes from a source.
Definition Reader.hpp:17
virtual std::size_t read(unsigned char *buffer, std::size_t n)=0
Simple byte readers and writers.
Definition BufferedReader.hpp:21