summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/file_backend.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-14 01:43:34 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-14 02:10:12 +0200
commita1f08788d9626434c6f743b1cf2a9a4e59dbc741 (patch)
tree275321ce3675c38581e51a431cea63f67b7912cc /src/core/file_sys/file_backend.h
parentLoader: Remove unnecessary pointer indirection to IOFile (diff)
downloadyuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.tar
yuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.tar.gz
yuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.tar.bz2
yuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.tar.lz
yuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.tar.xz
yuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.tar.zst
yuzu-a1f08788d9626434c6f743b1cf2a9a4e59dbc741.zip
Diffstat (limited to 'src/core/file_sys/file_backend.h')
-rw-r--r--src/core/file_sys/file_backend.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.h
index f5f72c722..df7165df3 100644
--- a/src/core/file_sys/file_backend.h
+++ b/src/core/file_sys/file_backend.h
@@ -31,7 +31,7 @@ public:
* @param buffer Buffer to read data into
* @return Number of bytes read
*/
- virtual size_t Read(const u64 offset, const u32 length, u8* buffer) const = 0;
+ virtual size_t Read(u64 offset, size_t length, u8* buffer) const = 0;
/**
* Write data to the file
@@ -41,20 +41,20 @@ public:
* @param buffer Buffer to read data from
* @return Number of bytes written
*/
- virtual size_t Write(const u64 offset, const u32 length, const u32 flush, const u8* buffer) const = 0;
+ virtual size_t Write(u64 offset, size_t length, bool flush, const u8* buffer) const = 0;
/**
* Get the size of the file in bytes
* @return Size of the file in bytes
*/
- virtual size_t GetSize() const = 0;
+ virtual u64 GetSize() const = 0;
/**
* Set the size of the file in bytes
* @param size New size of the file
* @return true if successful
*/
- virtual bool SetSize(const u64 size) const = 0;
+ virtual bool SetSize(u64 size) const = 0;
/**
* Close the file