MCPcopy Index your code
hub / github.com/benfry/processing4 / concat

Method concat

core/src/processing/core/PApplet.java:8136–8141  ·  view source on GitHub ↗

Concatenates two arrays. For example, concatenating the array { 1, 2, 3 } and the array { 4, 5, 6 } yields { 1, 2, 3, 4, 5, 6 }. Both parameters must be arrays of the same datatype. When using an array of objects, the data returned from the function must be cast to the object array's d

(boolean[] a, boolean[] b)

Source from the content-addressed store, hash-verified

8134 * @see PApplet#arrayCopy(Object, int, Object, int, int)
8135 */
8136 static public boolean[] concat(boolean[] a, boolean[] b) {
8137 boolean[] c = new boolean[a.length + b.length];
8138 System.arraycopy(a, 0, c, 0, a.length);
8139 System.arraycopy(b, 0, c, a.length, b.length);
8140 return c;
8141 }
8142
8143 static public byte[] concat(byte[] a, byte[] b) {
8144 byte[] c = new byte[a.length + b.length];

Callers 7

launchMethod · 0.95
mainMethod · 0.95
getChildrenRecursiveMethod · 0.95
appendChildMethod · 0.95
compileMethod · 0.95
parseKeyStrokeMethod · 0.80

Calls 1

arraycopyMethod · 0.80

Tested by

no test coverage detected