pipe

Pipes an InputStream directly into this OutputStream.

The number of bytes written is either the whole input stream when nbytes == ulong.max, or exactly nbytes for nbytes < ulong.max. If the input stream contains less than nbytes of data, an exception is thrown.

  1. ulong pipe(InputStream source, OutputStream sink, ulong nbytes, PipeMode mode)
  2. ulong pipe(InputStream source, OutputStream sink, PipeMode mode)
    ulong
    pipe
    (
    InputStream
    OutputStream
    )
    (
    InputStream source
    ,
    OutputStream sink
    ,)
    if (
    isOutputStream!OutputStream &&
    isInputStream!InputStream
    )

Return Value

Type: ulong

The actual number of bytes written is returned. If nbytes is given and not equal to ulong.max, íts value will be returned.

Meta