Home
last modified time | relevance | path

Searched refs:GetHashCode (Results 1 – 25 of 57) sorted by relevance

123

/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DProtobufEqualityComparers.cs88 public override int GetHashCode(double obj) => in GetHashCode() method in Google.Protobuf.Collections.ProtobufEqualityComparers.BitwiseDoubleEqualityComparerImpl
89 BitConverter.DoubleToInt64Bits(obj).GetHashCode(); in GetHashCode()
100 public override int GetHashCode(float obj) => in GetHashCode() method in Google.Protobuf.Collections.ProtobufEqualityComparers.BitwiseSingleEqualityComparerImpl
101 BitConverter.DoubleToInt64Bits(obj).GetHashCode(); in GetHashCode()
113 public override int GetHashCode(double? obj) => in GetHashCode() method in Google.Protobuf.Collections.ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparerImpl
114 obj == null ? 293864 : BitwiseDoubleEqualityComparer.GetHashCode(obj.Value); in GetHashCode()
126 public override int GetHashCode(float? obj) => in GetHashCode() method in Google.Protobuf.Collections.ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparerImpl
127 obj == null ? 293864 : BitwiseSingleEqualityComparer.GetHashCode(obj.Value); in GetHashCode()
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DWrapperBenchmarkMessages.cs1950 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.Benchmarks.ManyWrapperFieldsMessage
1952 …^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField95); in GetHashCode()
1953 … ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField1); in GetHashCode()
1954 …^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField79); in GetHashCode()
1955 if (int64Field2_ != null) hash ^= Int64Field2.GetHashCode(); in GetHashCode()
1956 …^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField96); in GetHashCode()
1957 if (int64Field3_ != null) hash ^= Int64Field3.GetHashCode(); in GetHashCode()
1958 if (int64Field4_ != null) hash ^= Int64Field4.GetHashCode(); in GetHashCode()
1959 …^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField97); in GetHashCode()
1960 …^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField65); in GetHashCode()
[all …]
DBenchmarkMessage1Proto3.cs653 public override int GetHashCode() { in GetHashCode() method in Benchmarks.Proto3.GoogleMessage1
655 if (Field1.Length != 0) hash ^= Field1.GetHashCode(); in GetHashCode()
656 if (Field9.Length != 0) hash ^= Field9.GetHashCode(); in GetHashCode()
657 if (Field18.Length != 0) hash ^= Field18.GetHashCode(); in GetHashCode()
658 if (Field80 != false) hash ^= Field80.GetHashCode(); in GetHashCode()
659 if (Field81 != false) hash ^= Field81.GetHashCode(); in GetHashCode()
660 if (Field2 != 0) hash ^= Field2.GetHashCode(); in GetHashCode()
661 if (Field3 != 0) hash ^= Field3.GetHashCode(); in GetHashCode()
662 if (Field280 != 0) hash ^= Field280.GetHashCode(); in GetHashCode()
663 if (Field6 != 0) hash ^= Field6.GetHashCode(); in GetHashCode()
[all …]
DBenchmarks.cs161 public override int GetHashCode() { in GetHashCode() method in Benchmarks.BenchmarkDataset
163 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
164 if (MessageName.Length != 0) hash ^= MessageName.GetHashCode(); in GetHashCode()
165 hash ^= payload_.GetHashCode(); in GetHashCode()
167 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DTestMessagesProto3.cs2257 public override int GetHashCode() { in GetHashCode() method in ProtobufTestMessages.Proto3.TestAllTypesProto3
2259 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
2260 if (OptionalInt64 != 0L) hash ^= OptionalInt64.GetHashCode(); in GetHashCode()
2261 if (OptionalUint32 != 0) hash ^= OptionalUint32.GetHashCode(); in GetHashCode()
2262 if (OptionalUint64 != 0UL) hash ^= OptionalUint64.GetHashCode(); in GetHashCode()
2263 if (OptionalSint32 != 0) hash ^= OptionalSint32.GetHashCode(); in GetHashCode()
2264 if (OptionalSint64 != 0L) hash ^= OptionalSint64.GetHashCode(); in GetHashCode()
2265 if (OptionalFixed32 != 0) hash ^= OptionalFixed32.GetHashCode(); in GetHashCode()
2266 if (OptionalFixed64 != 0UL) hash ^= OptionalFixed64.GetHashCode(); in GetHashCode()
2267 if (OptionalSfixed32 != 0) hash ^= OptionalSfixed32.GetHashCode(); in GetHashCode()
[all …]
DTestMessagesProto2.cs2427 public override int GetHashCode() { in GetHashCode() method in ProtobufTestMessages.Proto2.TestAllTypesProto2
2429 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
2430 if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode(); in GetHashCode()
2431 if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode(); in GetHashCode()
2432 if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode(); in GetHashCode()
2433 if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode(); in GetHashCode()
2434 if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode(); in GetHashCode()
2435 if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode(); in GetHashCode()
2436 if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode(); in GetHashCode()
2437 if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode(); in GetHashCode()
[all …]
DUnittestWellKnownTypes.cs504 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.TestProtos.TestWellKnownTypes
506 if (anyField_ != null) hash ^= AnyField.GetHashCode(); in GetHashCode()
507 if (apiField_ != null) hash ^= ApiField.GetHashCode(); in GetHashCode()
508 if (durationField_ != null) hash ^= DurationField.GetHashCode(); in GetHashCode()
509 if (emptyField_ != null) hash ^= EmptyField.GetHashCode(); in GetHashCode()
510 if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode(); in GetHashCode()
511 if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode(); in GetHashCode()
512 if (structField_ != null) hash ^= StructField.GetHashCode(); in GetHashCode()
513 if (timestampField_ != null) hash ^= TimestampField.GetHashCode(); in GetHashCode()
514 if (typeField_ != null) hash ^= TypeField.GetHashCode(); in GetHashCode()
[all …]
DUnittestProto3.cs958 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.TestProtos.TestAllTypes
960 if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode(); in GetHashCode()
961 if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode(); in GetHashCode()
962 if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode(); in GetHashCode()
963 if (SingleUint64 != 0UL) hash ^= SingleUint64.GetHashCode(); in GetHashCode()
964 if (SingleSint32 != 0) hash ^= SingleSint32.GetHashCode(); in GetHashCode()
965 if (SingleSint64 != 0L) hash ^= SingleSint64.GetHashCode(); in GetHashCode()
966 if (SingleFixed32 != 0) hash ^= SingleFixed32.GetHashCode(); in GetHashCode()
967 if (SingleFixed64 != 0UL) hash ^= SingleFixed64.GetHashCode(); in GetHashCode()
968 if (SingleSfixed32 != 0) hash ^= SingleSfixed32.GetHashCode(); in GetHashCode()
[all …]
DUnittestProto3Optional.cs589 public override int GetHashCode() { in GetHashCode() method in ProtobufUnittest.TestProto3Optional
591 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
592 if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode(); in GetHashCode()
593 if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode(); in GetHashCode()
594 if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode(); in GetHashCode()
595 if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode(); in GetHashCode()
596 if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode(); in GetHashCode()
597 if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode(); in GetHashCode()
598 if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode(); in GetHashCode()
599 if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode(); in GetHashCode()
[all …]
DMapUnittestProto3.cs437 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.TestProtos.TestMap
439 hash ^= MapInt32Int32.GetHashCode(); in GetHashCode()
440 hash ^= MapInt64Int64.GetHashCode(); in GetHashCode()
441 hash ^= MapUint32Uint32.GetHashCode(); in GetHashCode()
442 hash ^= MapUint64Uint64.GetHashCode(); in GetHashCode()
443 hash ^= MapSint32Sint32.GetHashCode(); in GetHashCode()
444 hash ^= MapSint64Sint64.GetHashCode(); in GetHashCode()
445 hash ^= MapFixed32Fixed32.GetHashCode(); in GetHashCode()
446 hash ^= MapFixed64Fixed64.GetHashCode(); in GetHashCode()
447 hash ^= MapSfixed32Sfixed32.GetHashCode(); in GetHashCode()
[all …]
DUnittest.cs2734 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.TestProtos.Proto2.TestAllTypes
2736 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode()
2737 if (HasOptionalInt64) hash ^= OptionalInt64.GetHashCode(); in GetHashCode()
2738 if (HasOptionalUint32) hash ^= OptionalUint32.GetHashCode(); in GetHashCode()
2739 if (HasOptionalUint64) hash ^= OptionalUint64.GetHashCode(); in GetHashCode()
2740 if (HasOptionalSint32) hash ^= OptionalSint32.GetHashCode(); in GetHashCode()
2741 if (HasOptionalSint64) hash ^= OptionalSint64.GetHashCode(); in GetHashCode()
2742 if (HasOptionalFixed32) hash ^= OptionalFixed32.GetHashCode(); in GetHashCode()
2743 if (HasOptionalFixed64) hash ^= OptionalFixed64.GetHashCode(); in GetHashCode()
2744 if (HasOptionalSfixed32) hash ^= OptionalSfixed32.GetHashCode(); in GetHashCode()
[all …]
DUnittestIssues.cs155 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.Issue307
158 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
293 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce
296 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
431 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice
434 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
614 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.NegativeEnumMessage
616 … if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.Zero) hash ^= Value.GetHashCode(); in GetHashCode()
617 hash ^= values_.GetHashCode(); in GetHashCode()
618 hash ^= packedValues_.GetHashCode(); in GetHashCode()
[all …]
DUnittestCustomOptionsProto3.cs364 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.TestMessageWithCustomOptions
366 if (Field1.Length != 0) hash ^= Field1.GetHashCode(); in GetHashCode()
367 if (anOneofCase_ == AnOneofOneofCase.OneofField) hash ^= OneofField.GetHashCode(); in GetHashCode()
370 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
567 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.CustomOptionFooRequest
570 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
703 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.CustomOptionFooResponse
706 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
839 public override int GetHashCode() { in GetHashCode() method in UnitTest.Issues.TestProtos.CustomOptionFooClientMessage
842 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs263 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.Reflection.FileDescriptorSet
265 hash ^= file_.GetHashCode(); in GetHashCode()
267 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
629 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.Reflection.FileDescriptorProto
631 if (HasName) hash ^= Name.GetHashCode(); in GetHashCode()
632 if (HasPackage) hash ^= Package.GetHashCode(); in GetHashCode()
633 hash ^= dependency_.GetHashCode(); in GetHashCode()
634 hash ^= publicDependency_.GetHashCode(); in GetHashCode()
635 hash ^= weakDependency_.GetHashCode(); in GetHashCode()
636 hash ^= messageType_.GetHashCode(); in GetHashCode()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs244 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Type
246 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
247 hash ^= fields_.GetHashCode(); in GetHashCode()
248 hash ^= oneofs_.GetHashCode(); in GetHashCode()
249 hash ^= options_.GetHashCode(); in GetHashCode()
250 if (sourceContext_ != null) hash ^= SourceContext.GetHashCode(); in GetHashCode()
251 … if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode(); in GetHashCode()
253 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
661 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Field
663 …!= global::Google.Protobuf.WellKnownTypes.Field.Types.Kind.TypeUnknown) hash ^= Kind.GetHashCode(); in GetHashCode()
[all …]
DApi.cs250 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Api
252 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
253 hash ^= methods_.GetHashCode(); in GetHashCode()
254 hash ^= options_.GetHashCode(); in GetHashCode()
255 if (Version.Length != 0) hash ^= Version.GetHashCode(); in GetHashCode()
256 if (sourceContext_ != null) hash ^= SourceContext.GetHashCode(); in GetHashCode()
257 hash ^= mixins_.GetHashCode(); in GetHashCode()
258 … if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.Proto2) hash ^= Syntax.GetHashCode(); in GetHashCode()
260 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
640 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Method
[all …]
DWrappers.cs130 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.DoubleValue
132 …lue != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value); in GetHashCode()
134 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
310 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.FloatValue
312 …lue != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); in GetHashCode()
314 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
490 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Int64Value
492 if (Value != 0L) hash ^= Value.GetHashCode(); in GetHashCode()
494 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
670 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.UInt64Value
[all …]
DStruct.cs149 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Struct
151 hash ^= Fields.GetHashCode(); in GetHashCode()
153 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
441 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Value
443 if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode(); in GetHashCode()
444 …lue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumberValue); in GetHashCode()
445 if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode(); in GetHashCode()
446 if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode(); in GetHashCode()
447 if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCode(); in GetHashCode()
448 if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode(); in GetHashCode()
[all …]
DDuration.cs196 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.WellKnownTypes.Duration
198 if (Seconds != 0L) hash ^= Seconds.GetHashCode(); in GetHashCode()
199 if (Nanos != 0) hash ^= Nanos.GetHashCode(); in GetHashCode()
201 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/
DConformance.cs176 public override int GetHashCode() { in GetHashCode() method in Conformance.FailureSet
178 hash ^= failure_.GetHashCode(); in GetHashCode()
180 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
505 public override int GetHashCode() { in GetHashCode() method in Conformance.ConformanceRequest
507 if (payloadCase_ == PayloadOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode(); in GetHashCode()
508 if (payloadCase_ == PayloadOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode(); in GetHashCode()
509 if (payloadCase_ == PayloadOneofCase.JspbPayload) hash ^= JspbPayload.GetHashCode(); in GetHashCode()
510 if (payloadCase_ == PayloadOneofCase.TextPayload) hash ^= TextPayload.GetHashCode(); in GetHashCode()
511 …tFormat != global::Conformance.WireFormat.Unspecified) hash ^= RequestedOutputFormat.GetHashCode(); in GetHashCode()
512 if (MessageType.Length != 0) hash ^= MessageType.GetHashCode(); in GetHashCode()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DExtensionValue.cs84 public override int GetHashCode() in GetHashCode() method in Google.Protobuf.ExtensionValue
89 hash = hash * 31 + field.GetHashCode(); in GetHashCode()
90 hash = hash * 31 + codec.GetHashCode(); in GetHashCode()
173 public override int GetHashCode() in GetHashCode() method in Google.Protobuf.RepeatedExtensionValue
178 hash = hash * 31 + field.GetHashCode(); in GetHashCode()
179 hash = hash * 31 + codec.GetHashCode(); in GetHashCode()
DUnknownField.cs88 public override int GetHashCode() in GetHashCode() method in Google.Protobuf.UnknownField
91 hash = hash * 47 + Lists.GetHashCode(varintList); in GetHashCode()
92 hash = hash * 47 + Lists.GetHashCode(fixed32List); in GetHashCode()
93 hash = hash * 47 + Lists.GetHashCode(fixed64List); in GetHashCode()
94 hash = hash * 47 + Lists.GetHashCode(lengthDelimitedList); in GetHashCode()
95 hash = hash * 47 + Lists.GetHashCode(groupList); in GetHashCode()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DEqualityTester.cs49 Assert.AreEqual(first.GetHashCode(), second.GetHashCode());
60 Assert.AreNotEqual(first.GetHashCode(), second.GetHashCode());
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DEqualityTester.cs49 Assert.AreEqual(first.GetHashCode(), second.GetHashCode());
61 Assert.AreNotEqual(first.GetHashCode(), second.GetHashCode());
/third_party/protobuf/csharp/src/AddressBook/
DAddressbook.cs173 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.Examples.AddressBook.Person
175 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
176 if (Id != 0) hash ^= Id.GetHashCode(); in GetHashCode()
177 if (Email.Length != 0) hash ^= Email.GetHashCode(); in GetHashCode()
178 hash ^= phones_.GetHashCode(); in GetHashCode()
179 if (lastUpdated_ != null) hash ^= LastUpdated.GetHashCode(); in GetHashCode()
181 hash ^= _unknownFields.GetHashCode(); in GetHashCode()
457 public override int GetHashCode() { in GetHashCode() method in Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber
459 if (Number.Length != 0) hash ^= Number.GetHashCode(); in GetHashCode()
460 …al::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType.Mobile) hash ^= Type.GetHashCode(); in GetHashCode()
[all …]

123