25 BufStream(
char *pBuffer,
int nSize,
bool bLittleEndian);
43#ifdef VIDEO_STANDARD_PAL
44 void ReadImpl(
void *pData,
int nBytes)
override;
46 void Read(
void *pData,
int nBytes)
override;
57#ifdef VIDEO_STANDARD_PAL
58 void WriteImpl(
const void *pData,
int nBytes)
override;
60 void Write(
const void *pData,
int nBytes)
override;
80#ifdef VIDEO_STANDARD_PAL
81 void SeekImpl(
int nOffset,
SeekType eFrom)
override;
105 return mPosition == mSize;
SeekType
Origins of Seek().
Definition binstream.h:25
BinStream(bool bLittleEndian)
Construct a stream.
Definition binstream.h:38
void Write(const void *pData, int nBytes) override
Write bytes.
~BufStream() override=default
Release the stream.
int Tell() override
Report the position.
Definition bufstream.h:93
BufStream(char *pBuffer, int nSize, bool bLittleEndian)
Construct a stream at the start of a buffer.
void Seek(int nOffset, SeekType eFrom) override
Move the position, failing the stream when it would leave the buffer.
void Flush() override
Do nothing.
Definition bufstream.h:69
void Read(void *pData, int nBytes) override
Read bytes.
bool Eof() override
Report whether the position is at the end of the buffer.
Definition bufstream.h:104
bool Fail() override
Report whether a transfer ran past the end.
Definition bufstream.h:115