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

Method expand

core/src/processing/core/PApplet.java:7609–7611  ·  view source on GitHub ↗

Increases the size of a one-dimensional array. By default, this function doubles the size of the array, but the optional newSize parameter provides precise control over the increase in size. When using an array of objects, the data returned from the function must be cast to the object ar

(boolean[] list)

Source from the content-addressed store, hash-verified

7607 * @see PApplet#shorten(boolean[])
7608 */
7609 static public boolean[] expand(boolean[] list) {
7610 return expand(list, list.length > 0 ? list.length << 1 : 1);
7611 }
7612
7613 /**
7614 * @param newSize new size for the array

Callers 15

textSentenceBreakMethod · 0.95
pushStyleMethod · 0.95
parsePathCodeMethod · 0.95
appendMethod · 0.95
addGlyphMethod · 0.95
beginContourImplMethod · 0.95
vertexMethod · 0.95
bezierVertexMethod · 0.95
quadraticVertexMethod · 0.95
curveVertexMethod · 0.95
addChildMethod · 0.95
setMethod · 0.95

Calls 2

arraycopyMethod · 0.80
minMethod · 0.45

Tested by

no test coverage detected