StreamShim.write

Writes an array of type T to the stream.

struct StreamShim(Stream)
static if(isSink!Stream)
size_t
write
(
T
)
(
in T[] buf
)
if (
isStream!Stream
)

Return Value

Type: size_t

The number of bytes written.

Note: This is not guaranteed to write the entire buffer to the stream. If T.sizeof is larger than 1, it is possible that an element may not be fully written. If the guarantee that the entire buffer is written to the stream, use writeExactly instead.

Meta