Writes an unsigned 16 bit value to the stream. @param val The value to be written
(int val)
| 117 | * @param val The value to be written |
| 118 | */ |
| 119 | public void |
| 120 | writeU16(int val) { |
| 121 | check(val, 16); |
| 122 | need(2); |
| 123 | array[pos++] = (byte)((val >>> 8) & 0xFF); |
| 124 | array[pos++] = (byte)(val & 0xFF); |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Writes an unsigned 16 bit value to the specified position in the stream. |
no test coverage detected