public int CalculateSize() { int num = 0; if (FightId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(FightId); } num += entities_.CalculateSize(_repeated_entities_codec); if (TurnIndex != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(TurnIndex); } if (TurnRemainingTimeSec != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(TurnRemainingTimeSec); } num += playersCompanions_.CalculateSize(_map_playersCompanions_codec); num += playersCardsCount_.CalculateSize(_map_playersCardsCount_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; if (id_.HasValue) { num += _single_id_codec.CalculateSizeWithTag(Id); } if (Name.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(Name); } if (God != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(God); } if (Weapon != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Weapon); } num += companions_.CalculateSize(_repeated_companions_codec); num += spells_.CalculateSize(_repeated_spells_codec); num += summonings_.CalculateSize(_repeated_summonings_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int size = 0; if (KeyData.Length != 0) { size += 1 + CodedOutputStream.ComputeBytesSize(KeyData); } if (RollingStartIntervalNumber != 0) { size += 1 + CodedOutputStream.ComputeUInt32Size(RollingStartIntervalNumber); } if (RollingPeriod != 0) { size += 1 + CodedOutputStream.ComputeUInt32Size(RollingPeriod); } if (TransmissionRiskLevel != 0) { size += 1 + CodedOutputStream.ComputeInt32Size(TransmissionRiskLevel); } size += visitedCountries_.CalculateSize(_repeated_visitedCountries_codec); if (Origin.Length != 0) { size += 1 + CodedOutputStream.ComputeStringSize(Origin); } if (ReportType != global::Iks.Protobuf.EfgsReportType.Unknown) { size += 1 + CodedOutputStream.ComputeEnumSize((int) ReportType); } if (DaysSinceOnsetOfSymptoms != 0) { size += 1 + CodedOutputStream.ComputeSInt32Size(DaysSinceOnsetOfSymptoms); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; }
public int CalculateSize() { int num = 0; if (FightDefId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(FightDefId); } if (FightMapId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(FightMapId); } if (FightType != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(FightType); } if (ConcurrentFightsCount != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(ConcurrentFightsCount); } if (OwnFightId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(OwnFightId); } if (OwnTeamIndex != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(OwnTeamIndex); } num += teams_.CalculateSize(_repeated_teams_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; num += playerStats_.CalculateSize(_repeated_playerStats_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { var size = 0; size += _keys.CalculateSize(repeatedKeysCodec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return(size); }
public int CalculateSize() { var size = 0; size += signatures_.CalculateSize(_repeated_signatures_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return(size); }
public int CalculateSize() { int size = 0; size += keys_.CalculateSize(_repeated_keys_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return(size); }
public int CalculateSize() { int num = 0; num += allDefIds_.CalculateSize(_repeated_allDefIds_codec); num += availableIds_.CalculateSize(_repeated_availableIds_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; if (FightId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(FightId); } num += events_.CalculateSize(_repeated_events_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; if (GroupRemoved) { num += 2; } num += members_.CalculateSize(_repeated_members_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; num += selectedDecks_.CalculateSize(_repeated_selectedDecks_codec); if (selectedWeapon_.HasValue) { num += _single_selectedWeapon_codec.CalculateSizeWithTag(SelectedWeapon); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; if (SpellId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(SpellId); } num += castTargets_.CalculateSize(_repeated_castTargets_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; if (EntityId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(EntityId); } num += path_.CalculateSize(_repeated_path_codec); if (entityToAttackId_.HasValue) { num += _single_entityToAttackId_codec.CalculateSizeWithTag(EntityToAttackId); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; num += fightsSnapshots_.CalculateSize(_repeated_fightsSnapshots_codec); if (OwnFightId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(OwnFightId); } if (OwnPlayerId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(OwnPlayerId); } num += ownSpellsIds_.CalculateSize(_repeated_ownSpellsIds_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { int num = 0; if (PlayerId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(PlayerId); } if (FightId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(FightId); } num += stats_.CalculateSize(_map_stats_codec); num += titles_.CalculateSize(_repeated_titles_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize() { return(field.CalculateSize(codec)); }
public int CalculateSize() { int num = 0; return(num + items_.CalculateSize(_repeated_items_codec)); }
public int CalculateSize() { int num = 0; if (EventType != 0) { num += 1 + CodedOutputStream.ComputeEnumSize((int)EventType); } if (EventId != 0) { num += 1 + CodedOutputStream.ComputeSInt32Size(EventId); } if (parentEventId_.HasValue) { num += _single_parentEventId_codec.CalculateSizeWithTag(ParentEventId); } if (Int1 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int1); } if (Int2 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int2); } if (Int3 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int3); } if (Int4 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int4); } if (Int5 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int5); } if (Int6 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int6); } if (Int7 != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(Int7); } if (String1.Length != 0) { num += 1 + CodedOutputStream.ComputeStringSize(String1); } if (Bool1) { num += 2; } if (cellCoord1_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize(CellCoord1); } if (cellCoord2_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize(CellCoord2); } if (CompanionReserveState1 != 0) { num += 1 + CodedOutputStream.ComputeEnumSize((int)CompanionReserveState1); } if (CompanionReserveState2 != 0) { num += 2 + CodedOutputStream.ComputeEnumSize((int)CompanionReserveState2); } if (DamageReductionType1 != 0) { num += 2 + CodedOutputStream.ComputeEnumSize((int)DamageReductionType1); } if (FightResult1 != 0) { num += 2 + CodedOutputStream.ComputeEnumSize((int)FightResult1); } if (gameStatistics1_ != null) { num += 2 + CodedOutputStream.ComputeMessageSize(GameStatistics1); } if (TeamsScoreModificationReason1 != 0) { num += 2 + CodedOutputStream.ComputeEnumSize((int)TeamsScoreModificationReason1); } if (optInt1_.HasValue) { num += _single_optInt1_codec.CalculateSizeWithTag(OptInt1); } if (optInt2_.HasValue) { num += _single_optInt2_codec.CalculateSizeWithTag(OptInt2); } if (optInt3_.HasValue) { num += _single_optInt3_codec.CalculateSizeWithTag(OptInt3); } if (optInt4_.HasValue) { num += _single_optInt4_codec.CalculateSizeWithTag(OptInt4); } num += cellCoordList1_.CalculateSize(_repeated_cellCoordList1_codec); num += spellMovementList1_.CalculateSize(_repeated_spellMovementList1_codec); num += castTargetList1_.CalculateSize(_repeated_castTargetList1_codec); num += intList1_.CalculateSize(_repeated_intList1_codec); num += intList2_.CalculateSize(_repeated_intList2_codec); if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }
public int CalculateSize(FieldCodec <T> codec) { return(_internal.CalculateSize(codec)); }
public void CalculateSize_FixedSizePacked() { var list = new RepeatedField<int> { 1, 500, 1 }; var tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); // 1 byte for the tag, 1 byte for the length, 4 bytes per entry Assert.AreEqual(14, list.CalculateSize(FieldCodec.ForSFixed32(tag))); }
public void CalculateSize_VariableSizePacked() { var list = new RepeatedField<int> { 1, 500, 1}; var tag = WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited); // 1 byte for the tag, 1 byte for the length, // 1 byte for the first entry, 2 bytes for the second, 1 byte for the third Assert.AreEqual(6, list.CalculateSize(FieldCodec.ForInt32(tag))); }
public void CalculateSize_FixedSizeNonPacked() { var list = new RepeatedField<int> { 1, 500, 1 }; var tag = WireFormat.MakeTag(1, WireFormat.WireType.Fixed32); // 5 bytes for the each entry Assert.AreEqual(15, list.CalculateSize(FieldCodec.ForSFixed32(tag))); }
public void CalculateSize_VariableSizeNonPacked() { var list = new RepeatedField<int> { 1, 500, 1 }; var tag = WireFormat.MakeTag(1, WireFormat.WireType.Varint); // 2 bytes for the first entry, 3 bytes for the second, 2 bytes for the third Assert.AreEqual(7, list.CalculateSize(FieldCodec.ForInt32(tag))); }
public int CalculateSize() { int num = 0; if (EntityId != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(EntityId); } if (EntityType != 0) { num += 1 + CodedOutputStream.ComputeInt32Size(EntityType); } if (name_ != null) { num += _single_name_codec.CalculateSizeWithTag(Name); } if (defId_.HasValue) { num += _single_defId_codec.CalculateSizeWithTag(DefId); } if (weaponId_.HasValue) { num += _single_weaponId_codec.CalculateSizeWithTag(WeaponId); } if (genderId_.HasValue) { num += _single_genderId_codec.CalculateSizeWithTag(GenderId); } if (playerIndexInFight_.HasValue) { num += _single_playerIndexInFight_codec.CalculateSizeWithTag(PlayerIndexInFight); } if (ownerId_.HasValue) { num += _single_ownerId_codec.CalculateSizeWithTag(OwnerId); } if (teamId_.HasValue) { num += _single_teamId_codec.CalculateSizeWithTag(TeamId); } if (level_.HasValue) { num += _single_level_codec.CalculateSizeWithTag(Level); } num += properties_.CalculateSize(_repeated_properties_codec); if (position_ != null) { num += 1 + CodedOutputStream.ComputeMessageSize(Position); } if (direction_.HasValue) { num += _single_direction_codec.CalculateSizeWithTag(Direction); } num += caracs_.CalculateSize(_map_caracs_codec); if (customSkin_ != null) { num += _single_customSkin_codec.CalculateSizeWithTag(CustomSkin); } if (actionDoneThisTurn_.HasValue) { num += _single_actionDoneThisTurn_codec.CalculateSizeWithTag(ActionDoneThisTurn); } if (_unknownFields != null) { num += _unknownFields.CalculateSize(); } return(num); }