()
| 294 | } |
| 295 | |
| 296 | async read (): Promise<Uint8Array> { |
| 297 | const result: any = await this.reader.read() |
| 298 | if (result.done || !result.value) { |
| 299 | return new Uint8Array(0) |
| 300 | } |
| 301 | const chunk = new Uint8Array(result.value) |
| 302 | this.increaseProgress(chunk.length) |
| 303 | return chunk |
| 304 | } |
| 305 | |
| 306 | // eslint-disable-next-line @typescript-eslint/no-empty-function |
| 307 | bringToFront (): void { } |