Beispiel #1
0
        public override long UpdateHash(HashFunction hashFunction, long hash)
        {
            int len = Length();

            hash = hashFunction.Update(hash, len);
            for (int i = 0; i < len; i++)
            {
                hash = hashFunction.Update(hash, LongValue(i));
            }
            return(hash);
        }
Beispiel #2
0
        public override long UpdateHash(HashFunction hashFunction, long hash)
        {
            int len = Length();

            hash = hashFunction.Update(hash, len);
            for (int i = 0; i < len; i++)
            {
                hash = hashFunction.Update(hash, System.BitConverter.DoubleToInt64Bits(DoubleValue(i)));
            }
            return(hash);
        }
Beispiel #3
0
 public override long UpdateHash(HashFunction hashFunction, long hash)
 {
     return(hashFunction.Update(hash, LongValue()));
 }
Beispiel #4
0
 public override long UpdateHash(HashFunction hashFunction, long hash)
 {
     return(hashFunction.Update(hash, System.BitConverter.DoubleToInt64Bits(DoubleValue())));
 }