encodeSize

fun encodeSize(size: UInt, order: ByteOrder): ByteArray

Encodes the length of the String as a prefix.

Return

the ByteArray containing the encoded length

Parameters

size

the size of the String

order

the ByteOrder to use.