(input, dest)
| 346 | } |
| 347 | |
| 348 | #encodeInto(input, dest) { |
| 349 | encodeInto(input, dest); |
| 350 | // We need to read from the binding here since the buffer gets refreshed |
| 351 | // from the snapshot. |
| 352 | const { 0: read, 1: written } = encodeIntoResults; |
| 353 | return { read, written }; |
| 354 | } |
| 355 | |
| 356 | get encoding() { |
| 357 | return this.#encoding; |