decodeCbor static method

CborObject decodeCbor(
  1. List<int> cborBytes
)

Decode a CBOR (Concise Binary Object Representation) data stream represented by a List

Implementation

static CborObject decodeCbor(List<int> cborBytes) {
  final decode = _decode(cborBytes);
  assert(decode.consumed == cborBytes.length, "cbor decoding faild.");
  return decode.value;
}