Function extend_encode_borrowed

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

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

Returns the number of bytes encoded.