Function extend_encode

Source
pub fn extend_encode(
    buf: &mut BytesMut,
    frame: &BytesFrame,
    int_as_bulkstring: bool,
) -> Result<usize, RedisProtocolError>
Available on crate features resp2 and bytes only.
Expand description

Attempt to encode a frame at the end of buf, extending the buffer before encoding.

Returns the number of bytes encoded.