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)
  2. ulong pipe(InputStream source, OutputStream sink)
    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