toByteArray

A copy of what has been written so far.

A copy rather than data itself, which is the backing array and is both longer than the content and reused by the next packet.

Return

The bytes written, up to position.