(parts: readonly Uint8Array[])
| 21 | const textEncoder = new TextEncoder(); |
| 22 | |
| 23 | const concat = (parts: readonly Uint8Array[]): Uint8Array => { |
| 24 | const out = new Uint8Array(parts.reduce((sum, part) => sum + part.length, 0)); |
| 25 | let offset = 0; |
| 26 | for (const part of parts) { |
| 27 | out.set(part, offset); |
| 28 | offset += part.length; |
| 29 | } |
| 30 | return out; |
| 31 | }; |
| 32 | |
| 33 | const sideBand = (bytes: Uint8Array): Uint8Array => { |
| 34 | const chunks: Uint8Array[] = [pktLine("NAK\n")]; |
no test coverage detected