()
| 1411 | |
| 1412 | // Ends the current run of slab bytes as a chunk |
| 1413 | private cut(): void { |
| 1414 | if (this.offset > this.start) { |
| 1415 | this.chunks.push(this.slab.subarray(this.start, this.offset)) |
| 1416 | this.start = this.offset |
| 1417 | } |
| 1418 | } |
| 1419 | |
| 1420 | // Returns `size` zeroed bytes of the output |
| 1421 | private alloc = (size: number): Uint8Array => { |