diff options
author | tycho <work.tycho@gmail.com> | 2015-05-19 14:33:34 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-19 14:33:34 +0200 |
commit | 6cccd2aabbb02fbdc59d55aefd6fd0010f901140 (patch) | |
tree | 6b8ad2542a825b426f237686f3364dc9d7d15bce /src/OSSupport/File.h | |
parent | Fixed compile and a few more warnings (diff) | |
download | cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.gz cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.bz2 cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.lz cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.xz cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.zst cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/File.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h index e92da4354..6281d1494 100644 --- a/src/OSSupport/File.h +++ b/src/OSSupport/File.h @@ -87,13 +87,13 @@ public: int Write(const void * iBuffer, size_t iNumBytes); /** Seeks to iPosition bytes from file start, returns old position or -1 for failure; asserts if not open */ - int Seek (int iPosition); + long Seek (int iPosition); /** Returns the current position (bytes from file start) or -1 for failure; asserts if not open */ - ssize_t Tell (void) const; + long Tell (void) const; /** Returns the size of file, in bytes, or -1 for failure; asserts if not open */ - ssize_t GetSize(void) const; + long GetSize(void) const; /** Reads the file from current position till EOF into an AString; returns the number of bytes read or -1 for error */ int ReadRestOfFile(AString & a_Contents); @@ -119,7 +119,7 @@ public: static bool IsFile(const AString & a_Path); /** Returns the size of the file, or a negative number on error */ - static ssize_t GetSize(const AString & a_FileName); + static long GetSize(const AString & a_FileName); /** Creates a new folder with the specified name. Returns true if successful. Path may be relative or absolute */ static bool CreateFolder(const AString & a_FolderPath); |