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

Method put2

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

Puts a short into this byte vector. The byte vector is automatically enlarged if necessary. @param s a short. @return this byte vector.

(final int s)

Source from the content-addressed store, hash-verified

119 */
120
121 public ByteVector put2 (final int s) {
122 int length = this.length;
123 if (length + 2 > data.length) {
124 enlarge(2);
125 }
126 byte[] data = this.data;
127 data[length++] = (byte)(s >>> 8);
128 data[length++] = (byte)s;
129 this.length = length;
130 return this;
131 }
132
133 /**
134 * Puts a byte and a short into this byte vector. The byte vector is

Callers 12

resizeInstructionsMethod · 0.95
toByteArrayMethod · 0.95
visitJumpInsnMethod · 0.80
visitIincInsnMethod · 0.80
visitTryCatchBlockMethod · 0.80
visitLocalVariableMethod · 0.80
visitLineNumberMethod · 0.80
putMethod · 0.80
visitInnerClassMethod · 0.80
visitFieldMethod · 0.80
put122Method · 0.80
putMethod · 0.80

Calls 1

enlargeMethod · 0.95

Tested by

no test coverage detected