outputPipe

An output pipe writes all its data to a given sink stream. Any data in the output pipe's window has been written to the stream.

The returned iopipe has a function "flush" that will extend a chunk of data and then release it immediately.

outputPipe
(
Chain
Sink
)
(
Chain c
,
Sink dev
)
if (
isIopipe!Chain &&
is(typeof(dev.write(c.window)) == size_t)
)

Parameters

dev Sink

The output stream to write data to. This must have a function write that can write a c.window.

Return Value

Type: auto

An iopipe that gives a view of the written data. Note that you don't have to do anything with the data.

Meta