Ejemplo n.º 1
0
            public UInt128 Visit(CosmosInt16 cosmosInt16, UInt128 seed)
            {
                UInt128 hash  = seed == RootHashSeed ? RootCache.Int16 : MurmurHash3.Hash128(HashSeeds.Int16, seed);
                short   value = cosmosInt16.GetValue();

                hash = MurmurHash3.Hash128(value, hash);
                return(hash);
            }
Ejemplo n.º 2
0
            public UInt128 Visit(CosmosInt16 cosmosInt16, UInt128 seed)
            {
                UInt128 hash  = MurmurHash3.Hash128(CosmosNumberHasher.Int16HashSeed, seed);
                short   value = cosmosInt16.GetValue();

                hash = MurmurHash3.Hash128(value, hash);
                return(hash);
            }
Ejemplo n.º 3
0
 public void Visit(CosmosInt16 cosmosInt16)
 {
     this.stringBuilder.AppendFormat("C_Int16({0})", cosmosInt16.GetValue());
 }