writeUint16LE

fun ByteArray.writeUint16LE(value: Int, offset: Int)

Writes value as an unsigned 16-bit little-endian integer into this array, occupying offset and offset + 1 (low byte first).

Only the low 16 bits of value are used. This frames length-prefixed fields for the native protocol layer.

Throws

if the two bytes would not fit within the array.