copyEncodedSizeInto

abstract fun copyEncodedSizeInto(array: ByteArray, size: UInt, order: ByteOrder, offset: Int): ByteArray

Encodes the length of the String as a prefix and copies it into a ByteArray at a given offset.

Return

the ByteArray containing the encoded length

Parameters

array

the ByteArray to copy the encoded length into.

size

the size of the String

order

the ByteOrder to use.

offset

the offset at which to copy the encoded length.