Skip to main content

update_log_len_in_place

Function update_log_len_in_place 

Source
pub fn update_log_len_in_place(
    buf: &mut [u8],
    add_len: u32,
) -> Result<u32, ProtocolError>
Expand description

Add add_len to the payload length stored in an encoded header.

Returns the new payload length.