Writes an unsigned 32 bit value to the stream. @param val The value to be written
(long val)
| 144 | * @param val The value to be written |
| 145 | */ |
| 146 | public void |
| 147 | writeU32(long val) { |
| 148 | check(val, 32); |
| 149 | need(4); |
| 150 | array[pos++] = (byte)((val >>> 24) & 0xFF); |
| 151 | array[pos++] = (byte)((val >>> 16) & 0xFF); |
| 152 | array[pos++] = (byte)((val >>> 8) & 0xFF); |
| 153 | array[pos++] = (byte)(val & 0xFF); |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Writes a byte array to the stream. |
no test coverage detected