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

Method next

basex-core/src/main/java/org/basex/util/list/ByteList.java:97–102  ·  view source on GitHub ↗

Returns an array with all elements and resets the array size. @return array

()

Source from the content-addressed store, hash-verified

95 * @return array
96 */
97 public byte[] next() {
98 final int s = size;
99 if(s == 0) return EMPTY;
100 size = 0;
101 return Arrays.copyOf(list, s);
102 }
103
104 /**
105 * Returns an array with all elements and invalidates the internal array.

Callers 3

cacheMethod · 0.95
sortMethod · 0.95
multiFormMethod · 0.95

Calls 1

copyOfMethod · 0.80

Tested by

no test coverage detected