diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-31 14:18:43 +0200 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-31 14:18:43 +0200 |
commit | 41d7119a38932163b3d533b43c1d0af281ef79b5 (patch) | |
tree | 72a88919fbbac79da28e2039eb0d85a6d6c6575e /src/OSSupport/File.h | |
parent | Merge pull request #2371 from SamJBarney/WarningFix (diff) | |
parent | Chunks that fail to load are offloaded to extra files. (diff) | |
download | cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.tar cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.tar.gz cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.tar.bz2 cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.tar.lz cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.tar.xz cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.tar.zst cuberite-41d7119a38932163b3d533b43c1d0af281ef79b5.zip |
Diffstat (limited to 'src/OSSupport/File.h')
-rw-r--r-- | src/OSSupport/File.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h index 6281d1494..b8381ac0e 100644 --- a/src/OSSupport/File.h +++ b/src/OSSupport/File.h @@ -80,11 +80,14 @@ public: bool IsOpen(void) const; bool IsEOF(void) const; - /** Reads up to iNumBytes bytes into iBuffer, returns the number of bytes actually read, or -1 on failure; asserts if not open */ - int Read (void * iBuffer, size_t iNumBytes); + /** Reads up to a_NumBytes bytes into a_Buffer, returns the number of bytes actually read, or -1 on failure; asserts if not open */ + int Read(void * a_Buffer, size_t a_NumBytes); - /** Writes up to iNumBytes bytes from iBuffer, returns the number of bytes actually written, or -1 on failure; asserts if not open */ - int Write(const void * iBuffer, size_t iNumBytes); + /** Reads up to a_NumBytes bytes, returns the bytes actually read, or empty string on failure; asserts if not open */ + AString Read(size_t a_NumBytes); + + /** Writes up to a_NumBytes bytes from a_Buffer, returns the number of bytes actually written, or -1 on failure; asserts if not open */ + int Write(const void * a_Buffer, size_t a_NumBytes); /** Seeks to iPosition bytes from file start, returns old position or -1 for failure; asserts if not open */ long Seek (int iPosition); |