MCPcopy Create free account
hub / github.com/apache/fory / GetHashCode

Method GetHashCode

csharp/src/Fory/MetaString.cs:91–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 }
90
91 public override int GetHashCode()
92 {
93 HashCode hc = new();
94 hc.Add(Value);
95 hc.Add(Encoding);
96 hc.Add(SpecialChar1);
97 hc.Add(SpecialChar2);
98 foreach (byte b in Bytes)
99 {
100 hc.Add(b);
101 }
102
103 return hc.ToHashCode();
104 }
105}
106
107internal sealed class MetaStringEncoder

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected