getBytes

open fun getBytes(value: Int): Array<Byte>

Get value as two bytes in big endian byte order.

Return

the converted int as a byte array in big endian byte order

Parameters

value

the Java int to convert to bytes


open fun getBytes(): Array<Byte>

Get value as two bytes in big endian byte order.

Return

the value as a a two byte array in big endian byte order