MCPcopy
hub / github.com/libgdx/libgdx / require

Method require

gdx/src/com/badlogic/gdx/utils/CharArray.java:426–429  ·  view source on GitHub ↗
(int additionalCapacity)

Source from the content-addressed store, hash-verified

424 }
425
426 private void require (int additionalCapacity) {
427 int sizeNeeded = size + additionalCapacity;
428 if (sizeNeeded - items.length > 0) resizeBuffer(sizeNeeded);
429 }
430
431 /** Resizes the buffer to at least the size specified.
432 * @throws RuntimeException if the {@code minCapacity} is negative */

Callers 9

appendMethod · 0.95
appendNullMethod · 0.95
appendPaddingMethod · 0.95
insertMethod · 0.95
readFromMethod · 0.95
replaceMethod · 0.95
setLengthMethod · 0.95

Calls 1

resizeBufferMethod · 0.95

Tested by

no test coverage detected