Function 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.
auto outputPipe(Chain, Sink)
(
Chain c,
Sink dev
)
if (isIopipe!Chain && is(typeof(dev .write(c .window)) == size_t));
The returned iopipe has a function "flush" that will extend a chunk of data and then release it immediately.
Parameters
Name | Description |
---|---|
c | The input data to write to the stream. |
dev | The output stream to write data to. This must have a function
write that can write a c.window. |
Returns
An iopipe that gives a view of the written data. Note that you don't have to do anything with the data.