WritableStream

A class to help write a stream of binary data to some target.

NOT YET FUNCTIONAL

Constructors

this
this(size_t bufferSize)
this(ubyte[] buffer)

Members

Functions

close
void close()

Performs a final flush() call, then marks the stream as closed, meaning no further data will be written to it.

flush
void flush()

Writes what is currently in the buffer to the target and waits for the target to accept it. Please note: if you are subclassing this to go to a different target

isClosed
bool isClosed()

Returns true if either you closed it or if the receiving end closed their side, indicating they don't want any more data.

put
void put(T value, ByteOrder byteOrder, string file, size_t line)
void put(T value, ByteOrder elementByteOrder, string file, size_t line)

Meta