SnoopOutput

Stream to expose call behaviour. By default, activity trace is sent to Cerr.

Constructors

this
this(OutputStream host, Snoop snoop)

Attach to the provided stream.

Members

Functions

close
void close()

Close the output.

conduit
IConduit conduit()

Return the hosting conduit.

copy
OutputStream copy(InputStream src, size_t max)

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

flush
OutputStream flush()

Emit/purge buffered content.

output
OutputStream output()

Return the upstream host of this filter.

seek
long seek(long offset, Anchor anchor)

Seek on this stream. Target conduits that don't support seeking will throw an IOException.

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

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

Meta