Function encode_string_chunk

Source
pub fn encode_string_chunk(
    buf: &mut [u8],
    offset: usize,
    data: &[u8],
) -> Result<usize, RedisProtocolError>
Expand description

Encode the bytes making up one chunk of a streaming blob string.

If data is empty this will do the same thing as encode_end_string to signal that the streamed string is finished.