public UInt128 Visit(CosmosNumber64 cosmosNumber64, UInt128 seed) { UInt128 hash = seed == RootHashSeed ? RootCache.Number64 : MurmurHash3.Hash128(HashSeeds.Number64, seed); Number64 value = cosmosNumber64.GetValue(); Number64.DoubleEx doubleExValue = Number64.ToDoubleEx(value); return(MurmurHash3.Hash128(doubleExValue, hash)); }
public UInt128 Visit(CosmosNumber64 cosmosNumber64, UInt128 seed) { UInt128 hash = MurmurHash3.Hash128(CosmosNumberHasher.Number64HashSeed, seed); Number64 value = cosmosNumber64.GetValue(); Span <byte> buffer = stackalloc byte[Number64.SizeOf]; value.CopyTo(buffer); return(MurmurHash3.Hash128(buffer, hash)); }
public void Visit(CosmosNumber64 cosmosNumber64) { this.stringBuilder.Append(cosmosNumber64.GetValue()); }