Function decode_bytes_mut

Source
pub fn decode_bytes_mut(
    buf: &mut BytesMut,
) -> Result<Option<(BytesFrame, usize, Bytes)>, RedisProtocolError>
Available on crate features resp2 and bytes only.
Expand description

Attempt to decode and split the provided buffer without moving or copying the inner buffer contents.

The returned frame(s) will hold owned views into the original buffer.

This function is designed to work best with a codec interface.