pub fn encode_header( stream: &mut impl Write, sync: SyncIndex, request_type: IProtoType ) -> Result<(), Error>