()
| 1279 | // Returns the next entry header, or `undefined` once the entries and the |
| 1280 | // input have ended. Input after the entries is discarded. |
| 1281 | next(): Header | undefined | typeof NeedInput { |
| 1282 | this.generation++ |
| 1283 | return this.guard(() => this.advance()) |
| 1284 | } |
| 1285 | |
| 1286 | private guard<A>(f: () => A): A { |
| 1287 | if (this.failure !== undefined) throw this.failure |