Function parse

Source
pub fn parse(bytes: &[u8]) -> Result<(&[u8], Value<'_>), Error>
Expand description

Parses redis values from an stream of bytes. If the data is incomplete Err(Error::Partial) is returned.

The first value is returned along side with the unconsumed stream of bytes.