public UInt128 Visit(CosmosInt64 cosmosInt64, UInt128 seed)
            {
                UInt128 hash  = seed == RootHashSeed ? RootCache.Int64 : MurmurHash3.Hash128(HashSeeds.Int64, seed);
                long    value = cosmosInt64.GetValue();

                hash = MurmurHash3.Hash128(value, hash);
                return(hash);
            }
Example #2
0
            public UInt128 Visit(CosmosInt64 cosmosInt64, UInt128 seed)
            {
                UInt128 hash  = MurmurHash3.Hash128(CosmosNumberHasher.Int64HashSeed, seed);
                long    value = cosmosInt64.GetValue();

                hash = MurmurHash3.Hash128(value, hash);
                return(hash);
            }
Example #3
0
 public void Visit(CosmosInt64 cosmosInt64)
 {
     this.stringBuilder.AppendFormat("C_Int64({0})", cosmosInt64.GetValue());
 }