MCPcopy Index your code
hub / github.com/Hiro420/NikkeTools / write_debug

Method write_debug

UnLuac/src/unluac/parse/LFunctionType.java:161–179  ·  view source on GitHub ↗
(OutputStream out, BHeader header, LFunction object)

Source from the content-addressed store, hash-verified

159 }
160
161 protected void write_debug(OutputStream out, BHeader header, LFunction object) throws IOException {
162 header.integer.write(out, header, new BInteger(object.lines.length));
163 for(int i = 0; i < object.lines.length; i++) {
164 header.integer.write(out, header, new BInteger(object.lines[i]));
165 }
166 header.local.writeList(out, header, object.locals);
167 int upvalueNameLength = 0;
168 for(LUpvalue upvalue : object.upvalues) {
169 if(upvalue.bname != null && upvalue.bname != LString.NULL) {
170 upvalueNameLength++;
171 } else {
172 break;
173 }
174 }
175 header.integer.write(out, header, new BInteger(upvalueNameLength));
176 for(int i = 0; i < upvalueNameLength; i++) {
177 header.string.write(out, header, object.upvalues[i].bname);
178 }
179 }
180
181}
182

Callers 4

writeMethod · 0.45
writeMethod · 0.45
writeMethod · 0.45
writeMethod · 0.45

Calls 2

writeListMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected