Package io.grpc.xds

Class XxHash64

java.lang.Object
io.grpc.xds.XxHash64

final class XxHash64 extends Object
The XxHash is a fast, non-cryptographic, 64-bit hash function that has excellent avalanche and 2-way bit independence properties.

This implementation is a simplified version adapted from OpenHFT/Zero-Allocation-Hashing.

  • Field Details

  • Constructor Details

    • XxHash64

      XxHash64(long seed)
  • Method Details

    • hashLong

      long hashLong(long input)
    • hashInt

      long hashInt(int input)
    • hashShort

      long hashShort(short input)
    • hashChar

      long hashChar(char input)
    • hashByte

      long hashByte(byte input)
    • hashVoid

      long hashVoid()
    • hashAsciiString

      long hashAsciiString(String input)
    • hashBytes

      long hashBytes(byte[] bytes)
    • hashBytes

      long hashBytes(byte[] bytes, int offset, int len)
    • hashBytes

      private long hashBytes(XxHash64.ByteSupplier supplier)
    • finalize

      private static long finalize(long hash)