mirror of
https://github.com/jakcron/nstool.git
synced 2025-01-22 23:41:59 +00:00
17 lines
620 B
C++
17 lines
620 B
C++
#pragma once
|
|
#include <fnd/IFile.h>
|
|
|
|
class CopiedIFile : public fnd::IFile
|
|
{
|
|
public:
|
|
inline CopiedIFile(fnd::IFile* file) : mFile(file) {}
|
|
|
|
inline size_t size() { return mFile->size(); }
|
|
inline void seek(size_t offset) { mFile->seek(offset); }
|
|
inline void read(byte_t* out, size_t len) { mFile->read(out, len); }
|
|
inline void read(byte_t* out, size_t offset, size_t len) { mFile->read(out, offset, len); }
|
|
inline void write(const byte_t* out, size_t len) { mFile->write(out, len); }
|
|
inline void write(const byte_t* out, size_t offset, size_t len) { mFile->write(out, offset, len); }
|
|
private:
|
|
fnd::IFile* mFile;
|
|
}; |