MCPcopy Create free account
hub / github.com/antlr/codebuff / getShort

Method getShort

output/java8/1.4.14/BytecodeDisassembler.java:136–141  ·  view source on GitHub ↗
(byte[] memory, int index)

Source from the content-addressed store, hash-verified

134
135
136 public static int getShort(byte[] memory, int index) {
137 int b1 = memory[index]&0xFF; // mask off sign-extended bits
138 int b2 = memory[index+1]&0xFF;
139 int word = b1<<(8*1) | b2;
140 return word;
141 }
142
143
144 public String strings() {

Callers 3

instrsMethod · 0.95
insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected