Skip to main content

decode_replconf_ack

Function decode_replconf_ack 

Source
pub fn decode_replconf_ack(
    buf: &[u8],
) -> Result<Option<(u64, usize)>, WireError>
Expand description

Parse one REPLCONF ACK <offset>\r\n line at the front of buf. Ok(Some((offset, used))) on a full line; Ok(None) if the buffer doesn’t start with R (not an ACK); Err(Truncated) if incomplete.