Move IO functions into .cpp files.

This commit is contained in:
Jared Boone
2016-10-04 10:12:10 -07:00
parent 43c4584a32
commit f3bfd50399
5 changed files with 89 additions and 34 deletions

View File

@@ -41,14 +41,8 @@ public:
return file.create(filename);
}
File::Result<File::Size> write(const void* const buffer, const File::Size bytes) override {
auto write_result = file.write(buffer, bytes) ;
if( write_result.is_ok() ) {
bytes_written += write_result.value();
}
return write_result;
}
File::Result<File::Size> write(const void* const buffer, const File::Size bytes) override;
protected:
File file;
uint64_t bytes_written { 0 };