setShortLE

fun ByteArray.setShortLE(offset: Int, value: Short)

Writes a 16-bit short into the byte array at the given offset in little-endian order.

Parameters

offset

the start index in the array.

value

the short value to write.