Add a Reader interface.

This commit is contained in:
Jared Boone 2016-10-04 17:04:49 -07:00
parent f3bfd50399
commit 01320d9806

View File

@ -23,6 +23,12 @@
#include "file.hpp"
class Reader {
public:
virtual File::Result<File::Size> read(void* const buffer, const File::Size bytes) = 0;
virtual ~Reader() = default;
};
class Writer {
public:
virtual File::Result<File::Size> write(const void* const buffer, const File::Size bytes) = 0;