mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 11:15:28 +00:00
19 lines
427 B
C++
19 lines
427 B
C++
#pragma once
|
|
#include <fnd/types.h>
|
|
|
|
namespace fnd
|
|
{
|
|
class IFile
|
|
{
|
|
public:
|
|
inline virtual ~IFile() {}
|
|
|
|
virtual size_t size() = 0;
|
|
virtual void seek(size_t offset) = 0;
|
|
virtual void read(byte_t* out, size_t len) = 0;
|
|
virtual void read(byte_t* out, size_t offset, size_t len) = 0;
|
|
virtual void write(const byte_t* out, size_t len) = 0;
|
|
virtual void write(const byte_t* out, size_t offset, size_t len) = 0;
|
|
};
|
|
}
|