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

Method unpackLength

basex-core/src/main/java/org/basex/util/Inline.java:127–129  ·  view source on GitHub ↗

Returns the token length of the inlined value. @param value inlined value @return length of unpacked token

(final long value)

Source from the content-addressed store, hash-verified

125 * @return length of unpacked token
126 */
127 public static int unpackLength(final long value) {
128 return (value & STRING) == 0 ? numDigits((int) value) : (int) (value >> 32) & 0x0F;
129 }
130
131 /**
132 * Indicates if the specified value is inlined.

Callers 1

textLenMethod · 0.95

Calls 1

numDigitsMethod · 0.80

Tested by

no test coverage detected