mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add a Reader interface.
This commit is contained in:
parent
f3bfd50399
commit
01320d9806
@ -23,6 +23,12 @@
|
|||||||
|
|
||||||
#include "file.hpp"
|
#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 {
|
class Writer {
|
||||||
public:
|
public:
|
||||||
virtual File::Result<File::Size> write(const void* const buffer, const File::Size bytes) = 0;
|
virtual File::Result<File::Size> write(const void* const buffer, const File::Size bytes) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user