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

Method parse_debug

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

Source from the content-addressed store, hash-verified

368class LFunctionType54 extends LFunctionType {
369
370 @Override
371 protected void parse_debug(ByteBuffer buffer, BHeader header, LFunctionParseState s) {
372 // TODO: process line info correctly
373 s.lines = (new BIntegerType50(1)).parseList(buffer, header);
374 s.abslineinfo = header.abslineinfo.parseList(buffer, header);
375 s.locals = header.local.parseList(buffer, header);
376 BList<LString> upvalueNames = header.string.parseList(buffer, header);
377 for(int i = 0; i < upvalueNames.length.asInt(); i++) {
378 s.upvalues[i].bname = upvalueNames.get(i);
379 s.upvalues[i].name = s.upvalues[i].bname.deref();
380 }
381 }
382
383 @Override
384 protected void write_debug(OutputStream out, BHeader header, LFunction object) throws IOException {

Callers 1

parse_mainMethod · 0.95

Calls 4

parseListMethod · 0.80
asIntMethod · 0.80
getMethod · 0.45
derefMethod · 0.45

Tested by

no test coverage detected