MCPcopy Create free account
hub / github.com/Hiro420/NikkeTools / OpcodeMap

Method OpcodeMap

UnLuac/src/unluac/decompile/OpcodeMap.java:15–25  ·  view source on GitHub ↗
(Map<Integer, Op> useropmap)

Source from the content-addressed store, hash-verified

13 boolean mihoyo_map = true; // TODO: hardcoded for now!
14
15 public OpcodeMap(Map<Integer, Op> useropmap) {
16 int max = -1;
17 for(int opcode : useropmap.keySet()) {
18 max = Math.max(opcode, max);
19 }
20 map = new Op[max + 1];
21 for(Entry<Integer, Op> entry : useropmap.entrySet()) {
22 map[entry.getKey()] = entry.getValue();
23 }
24 setup_lookup(false);
25 }
26
27 public OpcodeMap(Version.OpcodeMapType type) {
28 switch(type) {

Callers

nothing calls this directly

Calls 3

setup_lookupMethod · 0.95
maxMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected