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.
Writes an array of type T to the stream.