(name: string, value: string)
| 356 | // ParameterStatus is two C-strings and nothing else, so it is the cheapest |
| 357 | // way to drive the string decoder across the length its fast path covers. |
| 358 | const parameterStatus = (name: string, value: string): Uint8Array => { |
| 359 | const encoder = new TextEncoder() |
| 360 | const encode = (text: string) => encoder.encode(text) |
| 361 | return frame(encode(name), encode(value)) |
| 362 | } |
| 363 | |
| 364 | const frame = (name: Uint8Array, value: Uint8Array): Uint8Array => { |
| 365 | const length = 4 + name.length + 1 + value.length + 1 |
no test coverage detected