getValue

open fun getValue(bytes: Array<Byte>): Int

Helper method to get the value as a java int from a two-byte array

Return

the corresponding java int value

Parameters

bytes

the array of bytes


open fun getValue(bytes: Array<Byte>, offset: Int): Int

Helper method to get the value as a java int from two bytes starting at given array offset

Return

the corresponding java int value

Parameters

bytes

the array of bytes

offset

the offset to start