InputStream

The Tango input stream.

Members

Functions

input
InputStream input()

Return the upstream source.

load
void[] load(size_t max)

Load the bits from a stream, and return them all in an array. The optional max value indicates the maximum number of bytes to be read.

read
size_t read(void[] dst)

Read from stream into a target array. The provided dst will be populated with content from the stream.

Inherited Members

From IOStream

Eof
auto 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()

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