Module encode

Source
Expand description

Encoding functions for BytesMut and slices. Functions for encoding Frames into the RESP2 protocol.

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

Functionsยง

encode
Attempt to encode a frame into buf, assuming a starting offset of 0.
encode_bytes
Attempt to encode a frame into buf, extending the buffer as needed.