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

Method putShort

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

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

(final int shortValue)

Source from the content-addressed store, hash-verified

107 * @return this byte vector.
108 */
109 public ByteVector putShort(final int shortValue) {
110 int currentLength = length;
111 if (currentLength + 2 > data.length) {
112 enlarge(2);
113 }
114 byte[] currentData = data;
115 currentData[currentLength++] = (byte) (shortValue >>> 8);
116 currentData[currentLength++] = (byte) shortValue;
117 length = currentLength;
118 return this;
119 }
120
121 /**
122 * Puts a byte and a short into this byte vector. The byte vector is automatically enlarged if

Callers 15

visitAnnotationMethod · 0.95
visitTypeAnnotationMethod · 0.95
visitAnnotationMethod · 0.95
visitTypeAnnotationMethod · 0.95
visitInsnAnnotationMethod · 0.95
visitAnnotationMethod · 0.95
visitTypeAnnotationMethod · 0.95
toByteArrayMethod · 0.95
addBootstrapMethodMethod · 0.95

Calls 1

enlargeMethod · 0.95

Tested by

no test coverage detected