Ejemplo n.º 1
0
 public static int GetHashCode(byte[] bytes, int offset, int count)
 {
     if (Is32Bit)
     {
         return(unchecked ((int)FarmHash.Hash32(bytes, offset, count)));
     }
     else
     {
         return(unchecked ((int)FarmHash.Hash64(bytes, offset, count)));
     }
 }
 public int GetHashCode(ArraySegment <byte> key2)
 {
     unchecked
     {
         if (Is32Bit)
         {
             return((int)FarmHash.Hash32(key2.Array, key2.Offset, key2.Count));
         }
         else
         {
             return((int)FarmHash.Hash64(key2.Array, key2.Offset, key2.Count));
         }
     }
 }