(buffer: Uint8Array, x: string)
| 202 | } |
| 203 | |
| 204 | #setString(buffer: Uint8Array, x: string): Uint8Array { |
| 205 | if (buffer.length < x.length * 3) buffer = new Uint8Array(x.length * 3); |
| 206 | return buffer.subarray(0, this.#encoder.encodeInto(x, buffer).written); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Convert the {@linkcode FormDataEncoderStream} to a {@linkcode Response} to send to a |