Optimize FileReadStream seeking if new position is within the cached buffer
This commit is contained in:
@@ -15,6 +15,7 @@ private:
|
||||
File* _file;
|
||||
uint32 _virtualPosInBuffer; // Current position in the buffer (index)
|
||||
uint32 _bufferSize; // Amount of loaded bytes from the file to the buffer
|
||||
uint32 _filePosition; // Cached position in the file (native)
|
||||
byte _buffer[FILESTREAM_BUFFER_SIZE];
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user