( input: CborType[], output: Uint8Array, offset: number, )
| 202 | } |
| 203 | |
| 204 | function encodeArray( |
| 205 | input: CborType[], |
| 206 | output: Uint8Array, |
| 207 | offset: number, |
| 208 | ): number { |
| 209 | offset = encodeHeader(0b100_00000, input.length, output, offset); |
| 210 | for (const value of input) offset = encode(value, output, offset); |
| 211 | return offset; |
| 212 | } |
| 213 | |
| 214 | function encodeObject( |
| 215 | input: { [k: string]: CborType }, |
no test coverage detected