(OutputStream out)
| 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 | } |
no test coverage detected