Function decode_range

Source
pub fn decode_range(
    buf: &[u8],
) -> Result<Option<(RangeFrame, usize)>, RedisProtocolError>
Available on crate feature resp3 only.
Expand description

Attempt to the decode the contents of buf, returning frames that reference ranges into the provided buffer.

This is the generic interface behind the zero-copy interface and can be used to implement zero-copy deserialization into other types.