56#ifdef VIDEO_STANDARD_PAL
57 void ReadImpl(
void *pData,
int nBytes)
override;
59 void Read(
void *pData,
int nBytes)
override;
70#ifdef VIDEO_STANDARD_PAL
71 void WriteImpl(
const void *pData,
int nBytes)
override;
73 void Write(
const void *pData,
int nBytes)
override;
93#ifdef VIDEO_STANDARD_PAL
94 void SeekImpl(
int nOffset,
SeekType eFrom)
override;
118 return mFileName.c_str();
129 return mPosition == mSize;
149 std::unique_ptr<File> mFile;
AsyncStream(const char *pszFile, bool bLittleEndian)
Open a file and start reading it.
bool Fail() override
Report whether a transfer failed.
Definition asyncstream.h:139
bool Eof() override
Report whether the position is at the end of the file.
Definition asyncstream.h:128
void Flush() override
Do nothing.
Definition asyncstream.h:82
const char * GetFileName() const
Report the file.
Definition asyncstream.h:117
int Tell() override
Report the position.
Definition asyncstream.h:106
void Read(void *pData, int nBytes) override
Read bytes, waiting for them to arrive.
void Write(const void *pData, int nBytes) override
Write bytes.
void Seek(int nOffset, SeekType eFrom) override
Move the position.
bool Ready(int nBytes)
Report whether enough of the file has been read.
~AsyncStream() override
Release the buffer and the file.
SeekType
Origins of Seek().
Definition binstream.h:25
BinStream(bool bLittleEndian)
Construct a stream.
Definition binstream.h:38
Growable text buffer that is also a PrnStream.
Definition string.h:19