Module redis_protocol::decode[][src]

Decoding functions for BytesMut and slices.

Functions

decode

Attempt to parse the contents of buf, returning the first valid frame and the number of bytes consumed. If the byte slice contains an incomplete frame then None is returned.

decode_bytes

Attempt to parse the contents of buf, returning the first valid frame and the number of bytes consumed. If the byte slice contains an incomplete frame then None is returned.