mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-10 05:30:42 -05:00
Move IO functions into .cpp files.
This commit is contained in:
parent
43c4584a32
commit
f3bfd50399
5 changed files with 89 additions and 34 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue