示例#1
0
        public unsafe int GetHashCode(CKey obj)
        {
            uint hash = FnvOffset32;

            uint *ptr = (uint *)&obj;

            for (int i = 0; i < 4; i++)
            {
                hash ^= ptr[i];
                hash *= FnvPrime32;
            }

            return(unchecked ((int)hash));
        }
示例#2
0
 public unsafe bool Equals(CKey x, CKey y)
 {
     return(Equals(x.Value, y.Value, CKey.CASC_CKEY_SIZE));
 }