vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function pipe

Pipes an InputStream directly into this OutputStream.

void pipe(IS, OS) (
  IS source,
  OS sink,
  ulong nbytes = 0
) @safe;

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.


Sönke Ludwig


© 2012-2015 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.