setUnsignedShort

fun ByteArray.setUnsignedShort(index: Int, unsignedShort: UShort): ByteArray(source)

Set specific bytes in a byte array to an unsigned short

Return

the byte array

Since

0.1.0

Throws

if the array is not big enough