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