(start: number, end: number)
| 321 | |
| 322 | // @ts-expect-error |
| 323 | override async slice(start: number, end: number) { |
| 324 | if (this._streamEnded) return null; |
| 325 | |
| 326 | // Act like the stream ended after it's been called once |
| 327 | this._streamEnded = true; |
| 328 | |
| 329 | // Shift the start and end offsets to always start at 0, since the read stream is only a stream of one chunk with |
| 330 | // length of `chunkSize` |
| 331 | return super.slice(0, end - start); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | class FileReader { |
no outgoing calls
no test coverage detected