MCPcopy Create free account
hub / github.com/denoland/std / decodeCborSequence

Function decodeCborSequence

cbor/decode_cbor_sequence.ts:48–57  ·  view source on GitHub ↗
(input: Uint8Array)

Source from the content-addressed store, hash-verified

46 */
47
48export 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}

Callers 1

Calls 2

decodeFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected