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

Method parse_code

UnLuac/src/unluac/parse/LFunctionType.java:77–89  ·  view source on GitHub ↗
(ByteBuffer buffer, BHeader header, LFunctionParseState s)

Source from the content-addressed store, hash-verified

75 abstract protected void parse_main(ByteBuffer buffer, BHeader header, LFunctionParseState s);
76
77 protected void parse_code(ByteBuffer buffer, BHeader header, LFunctionParseState s) {
78 if(header.debug) {
79 System.out.println("-- beginning to parse bytecode list");
80 }
81 s.length = header.integer.parse(buffer, header).asInt();
82 s.code = new int[s.length];
83 for(int i = 0; i < s.length; i++) {
84 s.code[i] = buffer.getInt();
85 if(header.debug) {
86 System.out.println("-- parsed codepoint " + Integer.toHexString(s.code[i]));
87 }
88 }
89 }
90
91 protected void write_code(OutputStream out, BHeader header, LFunction object) throws IOException {
92 header.integer.write(out, header, new BInteger(object.code.length));

Callers 5

parse_mainMethod · 0.80
parse_mainMethod · 0.80
parse_mainMethod · 0.80
parse_mainMethod · 0.80
parse_mainMethod · 0.80

Calls 3

asIntMethod · 0.80
printlnMethod · 0.65
parseMethod · 0.45

Tested by

no test coverage detected