writeExactly

Writes exactly the given buffer and no less. Throws an exception if it cannot be done.

Note that, because it can potentially take multiple system calls to complete the write, the write is not guaranteed to be atomic with respect to other writes.

  1. void writeExactly(Stream stream, T[] buf)
    void
    writeExactly
    (
    Stream
    T
    )
    (
    auto ref Stream stream
    ,
    in T[] buf
    )
    if (
    isSink!Stream
    )
  2. void writeExactly(Stream stream, T value)

Throws

WriteException if the given buffer cannot be completely written.

Meta