(input: Uint8Array)
| 46 | */ |
| 47 | |
| 48 | export function decodeCborSequence(input: Uint8Array): CborType[] { |
| 49 | const output: CborType[] = []; |
| 50 | let offset = 0; |
| 51 | while (offset < input.length) { |
| 52 | const x = decode(input, offset); |
| 53 | output.push(x[0]); |
| 54 | offset = x[1]; |
| 55 | } |
| 56 | return output; |
| 57 | } |
no test coverage detected