21 BufStream(
char *buffer,
int size,
bool littleEndian);
37 virtual void Read(
void *data,
int bytes);
46 virtual void Write(
const void *data,
int bytes);
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
SeekType
Origins of Seek().
Definition binstream.h:25
BinStream over a buffer the caller provides.
Definition bufstream.h:12
virtual void Read(void *data, int bytes)
Copy bytes out of the buffer.
virtual void Flush()
Do nothing; the buffer holds every byte written.
Definition BufStream.h:49
virtual ~BufStream()
Destroy the stream.
virtual void Seek(int offset, SeekType type)
Move the position, failing the stream when it would leave the buffer.
virtual void Write(const void *data, int bytes)
Copy bytes into the buffer.
BufStream(char *buffer, int size, bool littleEndian)
Start a stream at the beginning of a buffer.