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

Method write

UnLuac/src/unluac/parse/BHeader.java:185–199  ·  view source on GitHub ↗
(OutputStream out)

Source from the content-addressed store, hash-verified

183 }
184
185 public void write(OutputStream out) throws IOException {
186 int major = version.getVersionMajor();
187 int minor = version.getVersionMinor();
188 int versionNumber = (major << 4) | minor;
189 if (version.isMua())
190 out.write(signatureMua);
191 else
192 out.write(signatureLua);
193 out.write(versionNumber);
194 version.getLHeaderType().write(out, this, lheader);
195 if(version.useupvaluecountinheader.get()) {
196 out.write(main.numUpvalues);
197 }
198 function.write(out, this, main);
199 }
200
201}

Callers 4

writeMethod · 0.95
printMethod · 0.45
printMethod · 0.45
printMethod · 0.45

Calls 5

getVersionMajorMethod · 0.80
getVersionMinorMethod · 0.80
isMuaMethod · 0.80
getLHeaderTypeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected