OutputStream.write

Pipes an InputStream directly into this OutputStream.

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.

  1. size_t write(ubyte[] bytes, IOMode mode)
  2. void write(ubyte[] bytes)
  3. void write(char[] bytes)
  4. void write(InputStream stream, ulong nbytes)
    interface OutputStream
    @safe deprecated final
    void
    write
    (,
    ulong nbytes = 0
    )

Meta