Skip to main content

decode

Function decode 

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

Decode one value from the front of input.

Returns the value and how many bytes it consumed, or Ok(None) when the buffer does not yet hold a complete reply.