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

Method readShort

src/jvm/clojure/asm/ClassReader.java:3326–3329  ·  view source on GitHub ↗

Reads a signed short value in #b. This method is intended for Attribute sub classes, and is normally not needed by class generators or adapters. @param offset the start offset of the value to be read in #b. @return the read value.

(final int offset)

Source from the content-addressed store, hash-verified

3324 * @return the read value.
3325 */
3326 public short readShort(final int offset) {
3327 byte[] classFileBuffer = b;
3328 return (short) (((classFileBuffer[offset] & 0xFF) << 8) | (classFileBuffer[offset + 1] & 0xFF));
3329 }
3330
3331 /**
3332 * Reads a signed int value in {@link #b}. <i>This method is intended for {@link Attribute} sub

Callers 2

ClassReaderMethod · 0.95
readCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected