#ifndef __NOD_IDISC_IO__ #define __NOD_IDISC_IO__ #include #include namespace NOD { class IDiscIO { public: virtual ~IDiscIO() {} class IReadStream { public: virtual size_t read(void* buf, size_t length)=0; }; virtual std::unique_ptr beginReadStream(size_t offset)=0; class IWriteStream { public: virtual size_t write(void* buf, size_t length)=0; }; virtual std::unique_ptr beginWriteStream(size_t offset)=0; }; } #endif // __NOD_IDISC_IO__