OutputStream

The Tango output stream.

Members

Functions

copy
OutputStream copy(InputStream src, size_t max)

Transfer the content of another stream to this one. Returns a reference to this class, and throws IOException on failure.

write
size_t write(const(void)[] src)

Write to stream from a source array. The provided src content will be written to the stream.

Properties

output
OutputStream output [@property getter]

Return the upstream sink.

Inherited Members

From IOStream

Eof
enum Eof;

the End-of-Flow identifer

Anchor
enum Anchor

The anchor positions supported by seek().

seek
long seek(long offset, Anchor anchor)

Move the stream position to the given offset from the provided anchor point, and return adjusted position.

conduit
IConduit conduit [@property getter]

Return the host conduit.

flush
IOStream flush()

Flush buffered content. For InputStream this is equivalent to clearing buffered content.

close
void close()

Close the input.

Mutator
interface Mutator

Marks a stream that performs read/write mutation, rather than generic decoration. This is used to identify those stream that should explicitly not share an upstream buffer with downstream siblings.

Meta