Function redis_protocol::resp2::encode::encode_bytes[][src]

pub fn encode_bytes(
    buf: &mut BytesMut,
    frame: &Frame
) -> Result<usize, RedisProtocolError>
Expand description

Attempt to encode a frame into buf, extending the buffer as needed.

Returns the number of bytes encoded.