(byte[] array, int pos, int value)
| 42 | } |
| 43 | |
| 44 | public static void writeShort(byte[] array, int pos, int value) throws IOException { |
| 45 | if (pos + 2 > array.length) { |
| 46 | throw new EOFException(); |
| 47 | } |
| 48 | array[pos] = (byte) (value & 0xFF); |
| 49 | array[pos + 1] = (byte) (value >>> 8 & 0xFF); |
| 50 | } |
| 51 | |
| 52 | public static void writeLong(byte[] array, int pos, long value) throws IOException { |
| 53 | if (pos + 8 > array.length) { |
no outgoing calls
no test coverage detected