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

Method set

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

Compresses and stores an integer value at the beginning of the byte array. @param array array @param value value to be stored @return length

(final byte[] array, final int value)

Source from the content-addressed store, hash-verified

97 * @return length
98 */
99 public static int set(final byte[] array, final int value) {
100 final int l = length(value);
101 set(array, value, 0, l);
102 return l;
103 }
104
105 /**
106 * Returns the length value of the specified array, stored in the first four bytes.

Callers 4

newNumMethod · 0.95
numMethod · 0.95
addMethod · 0.95
packMethod · 0.95

Calls 1

lengthMethod · 0.95

Tested by

no test coverage detected