You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Core/GameEngine/Include/Common/RAMFile.h
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -82,23 +82,23 @@ class RAMFile : public File
82
82
//virtual ~RAMFile();
83
83
84
84
85
-
virtual Bool open( const Char *filename, Int access = NONE, size_t bufferSize = 0 ); ///< Open a file for access
86
-
virtualvoidclose(); ///< Close the file
87
-
virtual Int read( void *buffer, Int bytes ); ///< Read the specified number of bytes in to buffer: See File::read
88
-
virtual Int readChar(); ///< Read a character from the file
89
-
virtual Int readWideChar(); ///< Read a wide character from the file
90
-
virtual Int write( constvoid *buffer, Int bytes ); ///< Write the specified number of bytes from the buffer: See File::write
91
-
virtual Int writeFormat( const Char* format, ... ); ///< Write the formatted string to the file
92
-
virtual Int writeFormat( const WideChar* format, ... ); ///< Write the formatted string to the file
93
-
virtual Int writeChar( const Char* character ); ///< Write a character to the file
94
-
virtual Int writeChar( const WideChar* character ); ///< Write a wide character to the file
95
-
virtual Int seek( Int new_pos, seekMode mode = CURRENT ); ///< Set file position: See File::seek
96
-
virtual Bool flush(); ///< flush data to disk
97
-
virtualvoidnextLine(Char *buf = nullptr, Int bufSize = 0); ///< moves current position to after the next new-line
98
-
99
-
virtual Bool scanInt(Int &newInt); ///< return what gets read as an integer from the current memory position.
100
-
virtual Bool scanReal(Real &newReal); ///< return what gets read as a float from the current memory position.
101
-
virtual Bool scanString(AsciiString &newString); ///< return what gets read as a string from the current memory position.
85
+
virtual Bool open( const Char *filename, Int access = NONE, size_t bufferSize = 0 )override; ///< Open a file for access
86
+
virtualvoidclose()override; ///< Close the file
87
+
virtual Int read( void *buffer, Int bytes )override; ///< Read the specified number of bytes in to buffer: See File::read
88
+
virtual Int readChar()override; ///< Read a character from the file
89
+
virtual Int readWideChar()override; ///< Read a wide character from the file
90
+
virtual Int write( constvoid *buffer, Int bytes )override; ///< Write the specified number of bytes from the buffer: See File::write
91
+
virtual Int writeFormat( const Char* format, ... )override; ///< Write the formatted string to the file
92
+
virtual Int writeFormat( const WideChar* format, ... )override; ///< Write the formatted string to the file
93
+
virtual Int writeChar( const Char* character )override; ///< Write a character to the file
94
+
virtual Int writeChar( const WideChar* character )override; ///< Write a wide character to the file
95
+
virtual Int seek( Int new_pos, seekMode mode = CURRENT )override; ///< Set file position: See File::seek
96
+
virtual Bool flush()override; ///< flush data to disk
97
+
virtualvoidnextLine(Char *buf = nullptr, Int bufSize = 0)override; ///< moves current position to after the next new-line
98
+
99
+
virtual Bool scanInt(Int &newInt)override; ///< return what gets read as an integer from the current memory position.
100
+
virtual Bool scanReal(Real &newReal)override; ///< return what gets read as a float from the current memory position.
101
+
virtual Bool scanString(AsciiString &newString)override; ///< return what gets read as a string from the current memory position.
102
102
103
103
virtual Bool open( File *file ); ///< Open file for fast RAM access
104
104
virtual Bool openFromArchive(File *archiveFile, const AsciiString& filename, Int offset, Int size); ///< copy file data from the given file at the given offset for the given size.
@@ -111,8 +111,8 @@ class RAMFile : public File
111
111
for freeing is (via delete[]). This is a Good Thing to
112
112
use because it minimizes memory copies for BIG files.
0 commit comments