pub fn decode(
bundle: &Bundle,
ty: &Value,
encoding: Option<&str>,
bytes: &[u8],
) -> RenderedExpand description
Decodes bytes of the type ty (a canonical type reference of
bundle). encoding is the sample’s Encoding as zenoh spells it
(application/json, application/cbor, application/protobuf, …), if
any. A packed type decodes only with its envelope’s tag in hand:
decode_in.