MCPcopy Create free account
hub / github.com/Youlor/unpacker / getShort

Method getShort

dexfixer/src/com/android/dx/util/ByteArray.java:133–136  ·  view source on GitHub ↗

Gets the signed short value at a particular offset. @param off >= 0, < (size() - 1); offset to fetch @return signed short at that offset

(int off)

Source from the content-addressed store, hash-verified

131 * @return {@code signed short} at that offset
132 */
133 public int getShort(int off) {
134 checkOffsets(off, off + 2);
135 return (getByte0(off) << 8) | getUnsignedByte0(off + 1);
136 }
137
138 /**
139 * Gets the {@code signed int} value at a particular offset.

Callers 4

readShortMethod · 0.80
getCodeMethod · 0.80
parseInstructionMethod · 0.80
parseWideMethod · 0.80

Calls 3

checkOffsetsMethod · 0.95
getByte0Method · 0.95
getUnsignedByte0Method · 0.95

Tested by

no test coverage detected