Beispiel #1
0
        public sealed override UInt64 CalculateChecksum()
        {
            var globals  = CRC64.Calculate(0, (Byte *)_globals, sizeof(_globals_));
            var entities = CRC64.Calculate(0, (Byte *)_entities, sizeof(_entities_));

            unchecked {
                UInt64 hash = 17UL;
                hash = hash * 31UL + globals;
                hash = hash * 31UL + entities;
                return(hash);
            }
        }