| 1284 | } |
| 1285 | |
| 1286 | private finish(): undefined | typeof NeedInput { |
| 1287 | // An extended header must be followed by the entry it describes |
| 1288 | if (!this.finished && (this.pax !== undefined || this.longName !== "" || this.longLink !== "")) { |
| 1289 | throw truncated(this.queue.consumed) |
| 1290 | } |
| 1291 | this.finished = true |
| 1292 | this.queue.clear() |
| 1293 | return this.ended ? undefined : NeedInput |
| 1294 | } |
| 1295 | |
| 1296 | // Global records apply to every entry that follows, except the ones that only |
| 1297 | // describe a single entry, and an empty value removes a record |