コード例 #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);
            }
コード例 #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);
            }
コード例 #3
0
 public void Visit(CosmosInt16 cosmosInt16)
 {
     this.stringBuilder.AppendFormat("C_Int16({0})", cosmosInt16.GetValue());
 }