| 17 | |
| 18 | |
| 19 | public class BHeader { |
| 20 | |
| 21 | private static final byte[] signatureLua = { |
| 22 | 0x1B, 0x4C, 0x75, 0x61, |
| 23 | }; |
| 24 | |
| 25 | private static final byte[] signatureMua = { |
| 26 | 0x1B, 0x4D, 0x75, 0x61, |
| 27 | }; |
| 28 | |
| 29 | public final boolean debug = false; |
| 30 | |
| 31 | public final Configuration config; |
| 32 | public final Version version; |
| 33 | public final LHeader lheader; |
| 34 | public final LHeaderType lheader_type; |
| 35 | public final BIntegerType integer; |
| 36 | public final BIntegerType sizeT; |
| 37 | public final LBooleanType bool; |
| 38 | public final LNumberType number; |
| 39 | public final LNumberType linteger; |
| 40 | public final LNumberType lfloat; |
| 41 | public final LStringType string; |
| 42 | public final LConstantType constant; |
| 43 | public final LAbsLineInfoType abslineinfo; |
| 44 | public final LLocalType local; |
| 45 | public final LUpvalueType upvalue; |
| 46 | public final LFunctionType function; |
| 47 | public final CodeExtract extractor; |
| 48 | public final OpcodeMap opmap; |
| 49 | |
| 50 | public final LFunction main; |
| 51 | |
| 52 | public BHeader(Version version, LHeader lheader) { |
| 53 | this(version, lheader, null); |
| 54 | } |
| 55 | |
| 56 | public BHeader(Version version, LHeader lheader, LFunction main) { |
| 57 | this.config = null; |
| 58 | this.version = version; |
| 59 | this.lheader = lheader; |
| 60 | this.lheader_type = version.getLHeaderType(); |
| 61 | integer = lheader.integer; |
| 62 | sizeT = lheader.sizeT; |
| 63 | bool = lheader.bool; |
| 64 | number = lheader.number; |
| 65 | linteger = lheader.linteger; |
| 66 | lfloat = lheader.lfloat; |
| 67 | string = lheader.string; |
| 68 | constant = lheader.constant; |
| 69 | abslineinfo = lheader.abslineinfo; |
| 70 | local = lheader.local; |
| 71 | upvalue = lheader.upvalue; |
| 72 | function = lheader.function; |
| 73 | extractor = lheader.extractor; |
| 74 | opmap = version.getOpcodeMap(); |
| 75 | this.main = main; |
| 76 | } |
nothing calls this directly
no outgoing calls
no test coverage detected