(OutputStream out, long v)
| 289 | } |
| 290 | |
| 291 | public static void writeInt4BE(OutputStream out, long v) throws IOException { |
| 292 | byte[] b4 = new byte[4]; |
| 293 | putInt4BE(b4, 0, v); |
| 294 | out.write(b4); |
| 295 | } |
| 296 | public static void putInt4BE(byte[] data, int offset, long v) { |
| 297 | int i = offset; |
| 298 | data[i+3] = (byte)((v >>> 0) & 0xFF); |