Skip to main content

decode

Function decode 

Source
pub fn decode(
    bytes: &[u8],
    resources: &dyn Resources,
) -> Result<Encoding, WireError>
Expand description

Read one encoding written by encode, resolving its ids through resources. Only the record’s shape is checked here (every count backed by bytes, every enumeration known, every id registered); whether it is safe to draw is crate::validate::validate’s question.