()
| 1402 | } |
| 1403 | |
| 1404 | flush(): Arr.NonEmptyArray<Uint8Array> { |
| 1405 | this.cut() |
| 1406 | const chunks = this.chunks as Arr.NonEmptyArray<Uint8Array> |
| 1407 | this.chunks = [] |
| 1408 | this.buffered = 0 |
| 1409 | return chunks |
| 1410 | } |
| 1411 | |
| 1412 | // Ends the current run of slab bytes as a chunk |
| 1413 | private cut(): void { |