summaryrefslogtreecommitdiffstats
path: root/platform/android/file_access_android.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-17 16:02:12 +0200
committerGitHub <noreply@github.com>2021-05-17 16:02:12 +0200
commitb0a51bf9fe6b35cf4e2a76ec067d76349ca9b75c (patch)
tree905b5c483a9dab81bc19fbfe9893e17f02506720 /platform/android/file_access_android.h
parent45e0f9fd523cb861b8e432966577d7c4608564ad (diff)
parent469fa47e0646d8f2ca3237dede8a04568039c7c6 (diff)
downloadredot-engine-b0a51bf9fe6b35cf4e2a76ec067d76349ca9b75c.tar.gz
Merge pull request #48768 from akien-mga/file-access-64-bit-4.0
Make all file access 64-bit (`uint64_t`)
Diffstat (limited to 'platform/android/file_access_android.h')
-rw-r--r--platform/android/file_access_android.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/android/file_access_android.h b/platform/android/file_access_android.h
index 56010c918a..9b0f85089d 100644
--- a/platform/android/file_access_android.h
+++ b/platform/android/file_access_android.h
@@ -40,8 +40,8 @@
class FileAccessAndroid : public FileAccess {
static FileAccess *create_android();
mutable AAsset *a = nullptr;
- mutable size_t len = 0;
- mutable size_t pos = 0;
+ mutable uint64_t len = 0;
+ mutable uint64_t pos = 0;
mutable bool eof = false;
public:
@@ -51,15 +51,15 @@ public:
virtual void close(); ///< close a file
virtual bool is_open() const; ///< true when file is open
- virtual void seek(size_t p_position); ///< seek to a given position
+ virtual void seek(uint64_t p_position); ///< seek to a given position
virtual void seek_end(int64_t p_position = 0); ///< seek from the end of file
- virtual size_t get_position() const; ///< get position in the file
- virtual size_t get_len() const; ///< get size of the file
+ virtual uint64_t get_position() const; ///< get position in the file
+ virtual uint64_t get_len() const; ///< get size of the file
virtual bool eof_reached() const; ///< reading passed EOF
virtual uint8_t get_8() const; ///< get a byte
- virtual int get_buffer(uint8_t *p_dst, int p_length) const;
+ virtual uint64_t get_buffer(uint8_t *p_dst, uint64_t p_length) const;
virtual Error get_error() const; ///< get last error