| 66 | } |
| 67 | |
| 68 | void dlua_chunk::write(writer& outf) const |
| 69 | { |
| 70 | if (empty()) |
| 71 | { |
| 72 | marshallByte(outf, CT_EMPTY); |
| 73 | return; |
| 74 | } |
| 75 | |
| 76 | if (!compiled.empty()) |
| 77 | { |
| 78 | marshallByte(outf, CT_COMPILED); |
| 79 | marshallString4(outf, compiled); |
| 80 | } |
| 81 | else |
| 82 | { |
| 83 | marshallByte(outf, CT_SOURCE); |
| 84 | marshallString4(outf, chunk); |
| 85 | } |
| 86 | |
| 87 | marshallString4(outf, file); |
| 88 | marshallInt(outf, first); |
| 89 | } |
| 90 | |
| 91 | void dlua_chunk::read(reader& inf) |
| 92 | { |
no test coverage detected