MCPcopy Create free account
hub / github.com/BaseXdb/basex / readDiffs

Method readDiffs

basex-core/src/main/java/org/basex/io/in/DataInput.java:62–67  ·  view source on GitHub ↗

Reads a distance-mapped integer array. @return integer array @throws IOException I/O Exception

()

Source from the content-addressed store, hash-verified

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.

Callers 1

readMethod · 0.80

Calls 1

readNumMethod · 0.95

Tested by

no test coverage detected