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

Method num

basex-core/src/main/java/org/basex/util/Num.java:51–56  ·  view source on GitHub ↗

Creates a compressed representation of the specified value. @param value value to be compressed @return new number array

(final int value)

Source from the content-addressed store, hash-verified

49 * @return new number array
50 */
51 public static byte[] num(final int value) {
52 final int len = length(value);
53 final byte[] array = new byte[len];
54 set(array, value, 0, len);
55 return array;
56 }
57
58 /**
59 * Compresses and adds a value to the specified array and

Callers 5

addMethod · 0.95
newNodeMethod · 0.95
mergeMethod · 0.95
addMethod · 0.95
moreMethod · 0.95

Calls 2

lengthMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected