MCPcopy Create free account
hub / github.com/beanshell/beanshell / enlarge

Method enlarge

src/bsh/org/objectweb/asm/ByteVector.java:286–292  ·  view source on GitHub ↗

Enlarge this byte vector so that it can receive n 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

284 */
285
286 private void enlarge (final int size) {
287 int length1 = 2 * data.length;
288 int length2 = length + size;
289 byte[] newData = new byte[length1 > length2 ? length1 : length2];
290 System.arraycopy(data, 0, newData, 0, length);
291 data = newData;
292 }
293}

Callers 8

put1Method · 0.95
put11Method · 0.95
put2Method · 0.95
put12Method · 0.95
put4Method · 0.95
put8Method · 0.95
putUTFMethod · 0.95
putByteArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected