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

Method putInt

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

Puts an int into this byte vector. The byte vector is automatically enlarged if necessary. @param intValue an int. @return this byte vector.

(final int intValue)

Source from the content-addressed store, hash-verified

169 * @return this byte vector.
170 */
171 public ByteVector putInt(final int intValue) {
172 int currentLength = length;
173 if (currentLength + 4 > data.length) {
174 enlarge(4);
175 }
176 byte[] currentData = data;
177 currentData[currentLength++] = (byte) (intValue >>> 24);
178 currentData[currentLength++] = (byte) (intValue >>> 16);
179 currentData[currentLength++] = (byte) (intValue >>> 8);
180 currentData[currentLength++] = (byte) intValue;
181 length = currentLength;
182 return this;
183 }
184
185 /**
186 * Puts one byte and two shorts into this byte vector. The byte vector is automatically enlarged

Callers 13

toByteArrayMethod · 0.95
putAttributesMethod · 0.80
putFieldInfoMethod · 0.80
putTargetMethod · 0.80
visitTableSwitchInsnMethod · 0.80
visitLookupSwitchInsnMethod · 0.80
putMethodInfoMethod · 0.80
putBootstrapMethodsMethod · 0.80
addConstantIntegerMethod · 0.80
putMethod · 0.80
putAnnotationsMethod · 0.80

Calls 1

enlargeMethod · 0.95

Tested by

no test coverage detected