Reads a big-endian 2-byte unsigned short from the begining of the given array. @param b The array to read from. @return A positive short integer. @throws IndexOutOfBoundsException if the byte array is too small.
(final byte[] b)
| 94 | * @throws IndexOutOfBoundsException if the byte array is too small. |
| 95 | */ |
| 96 | public static int getUnsignedShort(final byte[] b) { |
| 97 | return getUnsignedShort(b, 0); |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Reads a big-endian 2-byte unsigned short from an offset in the |