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

Method put8

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

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

(final long l)

Source from the content-addressed store, hash-verified

183 */
184
185 public ByteVector put8 (final long l) {
186 int length = this.length;
187 if (length + 8 > data.length) {
188 enlarge(8);
189 }
190 byte[] data = this.data;
191 int i = (int)(l >>> 32);
192 data[length++] = (byte)(i >>> 24);
193 data[length++] = (byte)(i >>> 16);
194 data[length++] = (byte)(i >>> 8);
195 data[length++] = (byte)i;
196 i = (int)l;
197 data[length++] = (byte)(i >>> 24);
198 data[length++] = (byte)(i >>> 16);
199 data[length++] = (byte)(i >>> 8);
200 data[length++] = (byte)i;
201 this.length = length;
202 return this;
203 }
204
205 /**
206 * Puts a String in UTF format into this byte vector. The byte vector is

Callers 2

newLongMethod · 0.80
newDoubleMethod · 0.80

Calls 1

enlargeMethod · 0.95

Tested by

no test coverage detected