Skip to main content

decode_deterministic_cbor

Function decode_deterministic_cbor 

Source
pub fn decode_deterministic_cbor(
    bytes: &[u8],
) -> Result<DeterministicCborValue, DeterministicCborError>
Expand description

Decode deterministic generic-CBOR bytes into the supported semantic value.

The decoder is strict: non-minimal integer/length encodings, indefinite lengths, unsupported major types, duplicate keys, out-of-order keys, invalid UTF-8, trailing bytes, and limit violations all fail closed.