Module decode

Source
Expand description

Decoding functions for BytesMut and slices. Functions for decoding the RESP2 protocol into frames.

https://redis.io/topics/protocol#resp-protocol-description

Functionsยง

decode
Attempt to parse the contents of buf, returning the first valid frame and the number of bytes consumed.
isize_to_usize