()
| 1186 | } |
| 1187 | |
| 1188 | end(): void { |
| 1189 | const { descriptor, header, record } = this.current! |
| 1190 | this.current = undefined |
| 1191 | if (header.size !== undefined && record.size !== header.size) { |
| 1192 | throw sizeMismatch(header.path, record.size, header.size) |
| 1193 | } |
| 1194 | if (descriptor) this.push(dataDescriptor(record)) |
| 1195 | this.records.push(record) |
| 1196 | } |
| 1197 | |
| 1198 | finish(): void { |
| 1199 | const start = this.offset |
no test coverage detected