(text, target)
| 610 | return utf8Encode(String(text)); |
| 611 | } |
| 612 | encodeInto(text, target) { |
| 613 | const bytes = utf8Encode(String(text)); |
| 614 | const written = Math.min(bytes.length, target.length); |
| 615 | target.set(bytes.subarray(0, written)); |
| 616 | return { read: text.length, written }; |
| 617 | } |
| 618 | }; |
| 619 | } |
| 620 |
nothing calls this directly
no test coverage detected