Skip to main content

decode

Function decode 

Source
pub fn decode(input: &[u8]) -> Result<(u64, usize), DecodeError>
Expand description

Decodes one integer. Returns it and the octets used. A value written in a longer form than it needs is accepted, as RFC 9000 §16 allows.

§Errors

Incomplete with the exact number of missing octets.