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

Function decodeCbor

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

Source from the content-addressed store, hash-verified

46 * @returns A {@link CborType} representing the decoded data.
47 */
48export function decodeCbor(input: Uint8Array): CborType {
49 if (!input.length) throw new RangeError("Cannot decode empty Uint8Array");
50 return decode(input, 0)[0];
51}

Callers 1

Calls 1

decodeFunction · 0.90

Tested by

no test coverage detected