Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Result<Value, CborError>
Expand description

Decode the first CBOR value in bytes. Trailing bytes are ignored, matching the replaced decoder’s behavior.