Writes a big-endian 2-byte short at the begining of the given array. @param b The array to write to. @param n A short integer. @throws IndexOutOfBoundsException if the byte array is too small.
(final byte[] b, final short n)
| 116 | * @throws IndexOutOfBoundsException if the byte array is too small. |
| 117 | */ |
| 118 | public static void setShort(final byte[] b, final short n) { |
| 119 | setShort(b, n, 0); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Writes a big-endian 2-byte short at an offset in the given array. |