buffer | Bytes to write. |
This writes a 16-bit count and an array of bytes of that size to the stream.
Note that this will be the full allocated size of the array. So if the array is partially filled with data to send - then you should be using WriteBytesAndSize instead.