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

Method getShort

output/java/1.4.14/Interpreter.java:1419–1423  ·  view source on GitHub ↗
(byte[] memory, int index)

Source from the content-addressed store, hash-verified

1417 }
1418
1419 public static int getShort(byte[] memory, int index) {
1420 int b1 = memory[index]&0xFF; // mask off sign-extended bits
1421 int b2 = memory[ index+1]&0xFF;
1422 return b1<<(8*1) | b2;
1423 }
1424
1425 protected static class ObjectList extends ArrayList<Object> {
1426 }

Callers 2

_execMethod · 0.95
load_strMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected