MCPcopy Index your code
hub / github.com/clojure/clojure / enlarge

Method enlarge

src/jvm/clojure/asm/ByteVector.java:353–359  ·  view source on GitHub ↗

Enlarges this byte vector so that it can receive 'size' more bytes. @param size number of additional bytes that this byte vector should be able to receive.

(final int size)

Source from the content-addressed store, hash-verified

351 * @param size number of additional bytes that this byte vector should be able to receive.
352 */
353 private void enlarge(final int size) {
354 int doubleCapacity = 2 * data.length;
355 int minimalCapacity = length + size;
356 byte[] newData = new byte[doubleCapacity > minimalCapacity ? doubleCapacity : minimalCapacity];
357 System.arraycopy(data, 0, newData, 0, length);
358 data = newData;
359 }
360}

Callers 11

putByteMethod · 0.95
put11Method · 0.95
putShortMethod · 0.95
put12Method · 0.95
put112Method · 0.95
putIntMethod · 0.95
put122Method · 0.95
putLongMethod · 0.95
putUTF8Method · 0.95
encodeUTF8Method · 0.95
putByteArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected