| 89 | } |
| 90 | |
| 91 | void dlua_chunk::read(reader& inf) |
| 92 | { |
| 93 | clear(); |
| 94 | chunk_t type = static_cast<chunk_t>(unmarshallByte(inf)); |
| 95 | switch (type) |
| 96 | { |
| 97 | case CT_EMPTY: |
| 98 | return; |
| 99 | case CT_SOURCE: |
| 100 | unmarshallString4(inf, chunk); |
| 101 | break; |
| 102 | case CT_COMPILED: |
| 103 | unmarshallString4(inf, compiled); |
| 104 | break; |
| 105 | } |
| 106 | unmarshallString4(inf, file); |
| 107 | first = unmarshallInt(inf); |
| 108 | } |
| 109 | |
| 110 | void dlua_chunk::clear() |
| 111 | { |
no test coverage detected