SystemStream

Base Stream for a descendant that uses the operating system API.

This class is not directly usable.

Members

Functions

clear
void clear()

see the Stream interface.

handle
const(StreamHandle) handle()

Exposes the handle for additional system stream operations.

loadFromStream
void loadFromStream(Stream stream)

see the Stream interface.

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

see the Stream interface.

read
size_t read(Ptr buffer, size_t count)

see the Stream interface.

saveToStream
void saveToStream(Stream stream)

see the Stream interface.

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

see the Stream interface.

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

see the Stream interface.

write
size_t write(const Ptr buffer, size_t count)

see the Stream interface.

Inherited Members

From Stream

read
size_t read(Ptr buffer, size_t count)

Reads from the Stream.

readVariable
T readVariable()

Reads a typed variable.

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.

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.

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

Sets or gets the stream position.

clear
void clear()

Resets the stream size to 0.

opOpAssign
void opOpAssign(Stream rhs)

Support for the concatenation operator.

From StreamPersist

saveToStream
void saveToStream(Stream stream)

Saves something in aStream

loadFromStream
void loadFromStream(Stream stream)

Loads something from aStream. aStream initial position is preserved.

Meta