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

Method parse_format

UnLuac/src/unluac/parse/LHeaderType.java:83–93  ·  view source on GitHub ↗
(ByteBuffer buffer, BHeader header, LHeaderParseState s)

Source from the content-addressed store, hash-verified

81 abstract protected void parse_main(ByteBuffer buffer, BHeader header, LHeaderParseState s);
82
83 protected void parse_format(ByteBuffer buffer, BHeader header, LHeaderParseState s) {
84 // 1 byte Lua "format"
85 int format = 0xFF & buffer.get();
86 if(format != 0 && format != 1) {
87 throw new IllegalStateException("The input chunk reports a non-standard lua format: " + format);
88 }
89 s.format = format;
90 if(header.debug) {
91 System.out.println("-- format: " + format);
92 }
93 }
94
95 protected void write_format(OutputStream out, BHeader header, LHeader object) throws IOException {
96 out.write(object.format);

Callers 4

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

Calls 2

printlnMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected