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

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

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

Returns the new length of the buffer.