Stream

Defines the members of a Stream.

Members

Functions

clear
void clear()

Resets the stream size to 0.

opOpAssign
void opOpAssign(Stream rhs)

Support for the concatenation operator.

position
long position()
void position(long value)
void position(int value)

Sets or gets the stream position.

read
size_t read(Ptr buffer, size_t count)

Reads from the Stream.

readVariable
T readVariable()

Reads a typed variable.

seek
long seek(long offset, SeekMode mode)
int seek(int offset, SeekMode mode)

Sets the stream position.

size
long size()
void size(long value)
void size(int value)

Sets or gets the stream size.

write
size_t write(const Ptr buffer, size_t count)

Writes the content of a buffer.

writeVariable
size_t writeVariable(T value)

Writes a typed value.

Meta