pub fn decode_bytes(
catalog: &Catalog,
ty: &Type,
bytes: &[u8],
mode: Mode,
limits: &Limits,
) -> Result<Value, DecodeError>Expand description
Decodes bytes as the one value of ty they encode, in mode and
within limits. Bytes left over after the value are refused.
§Errors
A DecodeError when the bytes are not exactly one value’s encoding of
ty, or the value passes limits.