MCPcopy Create free account
hub / github.com/anons-org/opencar / BinCode

Class BinCode

src/main/java/com/far/vms/opencar/instruct/BinCode.java:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10import java.util.List;
11
12public class BinCode {
13
14 private List<Integer> codes = new ArrayList<>();
15
16 public void loadBin(BinFile file){
17 while (file.available() > 0) {
18 int code = file.readInt();
19 codes.add(code);
20 }
21 }
22
23 public int get(int pc){
24 return codes.get(pc);
25 }
26
27
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected