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

Method put112

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

Puts two bytes and a short into this byte vector. The byte vector is automatically enlarged if necessary. @param byteValue1 a byte. @param byteValue2 another byte. @param shortValue a short. @return this byte vector.

(final int byteValue1, final int byteValue2, final int shortValue)

Source from the content-addressed store, hash-verified

149 * @return this byte vector.
150 */
151 final ByteVector put112(final int byteValue1, final int byteValue2, final int shortValue) {
152 int currentLength = length;
153 if (currentLength + 4 > data.length) {
154 enlarge(4);
155 }
156 byte[] currentData = data;
157 currentData[currentLength++] = (byte) byteValue1;
158 currentData[currentLength++] = (byte) byteValue2;
159 currentData[currentLength++] = (byte) (shortValue >>> 8);
160 currentData[currentLength++] = (byte) shortValue;
161 length = currentLength;
162 return this;
163 }
164
165 /**
166 * Puts an int into this byte vector. The byte vector is automatically enlarged if necessary.

Callers 1

Calls 1

enlargeMethod · 0.95

Tested by

no test coverage detected