Available on crate feature
resp2 only.Expand description
Decoding functions for BytesMut and slices.
Functions for decoding the RESP2 protocol into frames.
Functionsยง
- decode
- Attempt to decode the contents of
buf, returning the first valid frame and the number of bytes consumed. - decode_
bytes bytes - Attempt to decode the provided buffer without moving or copying the inner buffer contents.
- decode_
bytes_ mut bytes - Attempt to decode and split the provided buffer without moving or copying the inner buffer contents.
- decode_
range - Attempt to the decode the contents of
buf, returning frames that reference ranges into the provided buffer.