68 std::unique_ptr<File> mFile;
FileStreamBuffer(const char *pszPath, int nFlags)
Open a file and start the first read.
File * GetFile() const
Definition filestreambuffer.h:62
void Poll() override
Append the bytes of a finished read, then read as many bytes as the buffer has room for.
void Rewind() override
Seek the file back to its start and clear mInputDone.
bool IsClosed() const
Report whether the file failed to open.
~FileStreamBuffer() override
Close the file and free the read buffer.
Open file of the host or the disc.
Definition file.h:29
StreamBuffer(unsigned int size)
Allocate the buffer.