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

Method put12

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

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

(final int byteValue, final int shortValue)

Source from the content-addressed store, hash-verified

127 * @return this byte vector.
128 */
129 final ByteVector put12(final int byteValue, final int shortValue) {
130 int currentLength = length;
131 if (currentLength + 3 > data.length) {
132 enlarge(3);
133 }
134 byte[] currentData = data;
135 currentData[currentLength++] = (byte) byteValue;
136 currentData[currentLength++] = (byte) (shortValue >>> 8);
137 currentData[currentLength++] = (byte) shortValue;
138 length = currentLength;
139 return this;
140 }
141
142 /**
143 * Puts two bytes and a short into this byte vector. The byte vector is automatically enlarged if

Callers 15

putTargetMethod · 0.80
visitIntInsnMethod · 0.80
visitVarInsnMethod · 0.80
visitTypeInsnMethod · 0.80
visitFieldInsnMethod · 0.80
visitMethodInsnMethod · 0.80
visitLdcInsnMethod · 0.80
visitIincInsnMethod · 0.80
visitMethod · 0.80

Calls 1

enlargeMethod · 0.95

Tested by

no test coverage detected