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

Method size

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

Returns the length value of the specified array, stored in the first four bytes. @param array input array @return array length

(final byte[] array)

Source from the content-addressed store, hash-verified

108 * @return array length
109 */
110 public static int size(final byte[] array) {
111 return ((array[0] & 0xFF) << 24) + ((array[1] & 0xFF) << 16) +
112 ((array[2] & 0xFF) << 8) + (array[3] & 0xFF);
113 }
114
115 /**
116 * Stores the specified length value in the first bytes of the specified array.

Callers 6

mergeMethod · 0.95
writeFTDataMethod · 0.95
writeIndexMethod · 0.95
newNumMethod · 0.95
addMethod · 0.95
toStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected