()
| 36 | } |
| 37 | |
| 38 | async chunk() { |
| 39 | if (this.eof()) return |
| 40 | if (!this.started) await this._init() |
| 41 | if (this.cursor === this.buffer.length) { |
| 42 | await this._loadnext() |
| 43 | if (this._ended) return |
| 44 | } |
| 45 | this._moveCursor(this.buffer.length) |
| 46 | return this.buffer.slice(this.undoCursor, this.cursor) |
| 47 | } |
| 48 | |
| 49 | async read(n) { |
| 50 | if (this.eof()) return |