Skip to main content

decode

Function decode 

Source
pub fn decode(buf: &[u8]) -> Result<Option<(Value, usize)>>
Expand description

Decode one value from the front of buf: Ok(Some((value, used))), Ok(None) when the buffer holds only part of it, Err when it is malformed.