putShort

open fun putShort(value: Int, buf: Array<Byte>, offset: Int)

put the value as two bytes in big endian byte order.

Parameters

value

the Java int to convert to bytes

buf

the output buffer

offset

The offset within the output buffer of the first byte to be written. must be non-negative and no larger than buf.length-2