Put Reader, Writer inside "stream" namespace.

This commit is contained in:
Jared Boone 2016-10-04 17:13:21 -07:00
parent 01320d9806
commit a5793b8b9d
5 changed files with 9 additions and 5 deletions

View file

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