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

Method copyOf

basex-core/src/main/java/org/basex/util/Array.java:32–36  ·  view source on GitHub ↗

Copies the specified array. @param array array to be copied @param size new array size @return new array

(final byte[][] array, final int size)

Source from the content-addressed store, hash-verified

30 * @return new array
31 */
32 public static byte[][] copyOf(final byte[][] array, final int size) {
33 final byte[][] tmp = new byte[size][];
34 copy(array, Math.min(size, array.length), tmp);
35 return tmp;
36 }
37
38 /**
39 * Copies the specified array.

Callers 15

splitMethod · 0.95
addMethod · 0.95
distinctTokensMethod · 0.95
addMethod · 0.95
optimizeMethod · 0.95
rehashMethod · 0.95
stringToByteArrayMethod · 0.80
bufferMethod · 0.80
addMethod · 0.80

Calls 2

copyMethod · 0.95
minMethod · 0.45

Tested by 4

stringToByteArrayMethod · 0.64