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

Method length

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

Returns the compressed length of the value at the specified position. @param array array @param pos position where the value is found @return value length

(final byte[] array, final int pos)

Source from the content-addressed store, hash-verified

131 * @return value length
132 */
133 public static int length(final byte[] array, final int pos) {
134 final int v = (array[pos] & 0xFF) >>> 6;
135 return v == 0 ? 1 : v == 1 ? 2 : v == 2 ? 4 : 5;
136 }
137
138 /**
139 * Returns the compressed length of the specified value.

Callers 15

updateTextMethod · 0.95
writeFTDataMethod · 0.95
writeIdsMethod · 0.95
indexEntryMethod · 0.95
mergeMethod · 0.95
writeIndexMethod · 0.95
newNumMethod · 0.95
numMethod · 0.95
addMethod · 0.95
setMethod · 0.95
toStringMethod · 0.95
unpackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected