Esempio n. 1
0
 /// <summary>
 /// Gets the hash code of a <see cref="UTF8String"/>
 /// </summary>
 /// <param name="utf8">Input</param>
 public static int GetHashCode(UTF8String utf8)
 {
     if (IsNullOrEmpty(utf8))
     {
         return(0);
     }
     return(Utils.GetHashCode(utf8.data));
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public override int GetHashCode() => Utils.GetHashCode(Data);
Esempio n. 3
0
 /// <inheritdoc/>
 public int GetHashCode(byte[] obj) => Utils.GetHashCode(obj);
Esempio n. 4
0
 /// <inheritdoc/>
 public int GetHashCode(byte[] obj)
 {
     return(Utils.GetHashCode(obj));
 }
Esempio n. 5
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(Utils.GetHashCode(Data));
 }