Function pipe
Pipes an InputStream directly into this OutputStream.
ulong pipe(InputStream, OutputStream)
(
InputStream source,
OutputStream sink,
ulong nbytes
) @trusted
if (isOutputStream!OutputStream && isInputStream!InputStream);
ulong pipe(InputStream, OutputStream)
(
InputStream source,
OutputStream sink
)
if (isOutputStream!OutputStream && isInputStream!InputStream);
The number of bytes written is either the whole input stream when nbytes == 0
, or exactly
nbytes
for nbytes > 0
. If the input stream contains less than nbytes
of data, an
exception is thrown.
Returns
The actual number of bytes written is returned. If nbytes
is given
and not equal to ulong
, íts value will be returned.