pub fn update_log_len_in_place( buf: &mut [u8], add_len: u32, ) -> Result<u32, ProtocolError>
Add add_len to the payload length stored in an encoded header.
add_len
Returns the new payload length.