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

Method get

basex-core/src/main/java/org/basex/util/Atts.java:115–121  ·  view source on GitHub ↗

Returns the offset to the specified name. @param name name to be found @return offset or -1

(final byte[] name)

Source from the content-addressed store, hash-verified

113 * @return offset or -1
114 */
115 public int get(final byte[] name) {
116 final byte[][] lst = list;
117 for(int p = 0; p < size; p += 2) {
118 if(eq(lst[p], name)) return p >>> 1;
119 }
120 return -1;
121 }
122
123 /**
124 * Returns the name at the specified index position.

Callers 3

namespacesMethod · 0.95
containsMethod · 0.95
valueMethod · 0.95

Calls 1

eqMethod · 0.65

Tested by

no test coverage detected