Reads a distance-mapped integer array. @return integer array @throws IOException I/O Exception
()
| 60 | * @throws IOException I/O Exception |
| 61 | */ |
| 62 | public IntList readDiffs() throws IOException { |
| 63 | final int[] tmp = new int[readNum()]; |
| 64 | final int al = tmp.length; |
| 65 | for(int a = 0; a < al; ++a) tmp[a] = (a == 0 ? 0 : tmp[a - 1]) + readNum(); |
| 66 | return new IntList(tmp); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Reads a compressed integer array. |