Class CRC64


  • public class CRC64
    extends Object
    Since:
    2.5.0
    Author:
    Leon Chen
    • Field Detail

      • LOOKUP_TABLE

        public static final long[] LOOKUP_TABLE
    • Constructor Detail

      • CRC64

        public CRC64()
    • Method Detail

      • crc64

        public static long crc64​(byte[] bytes)
      • crc64

        public static long crc64​(byte[] bytes,
                                 long sum)
      • crc64

        public static long crc64​(ByteBuffer buf)
        Parameters:
        buf - buf
        Returns:
        checksum
        Since:
        3.5.5
      • crc64

        public static long crc64​(ByteBuffer buf,
                                 long sum)
        Parameters:
        buf - buf
        sum - checksum
        Returns:
        checksum
        Since:
        3.5.5
      • crc64

        public static long crc64​(List<ByteBuffer> list)
        Parameters:
        list - buf list
        Returns:
        checksum
        Since:
        3.5.5
      • crc64

        public static long crc64​(byte b,
                                 long sum)
      • crc64

        public static long crc64​(byte[] bytes,
                                 int start,
                                 int length)
      • crc64

        public static long crc64​(byte[] bytes,
                                 int start,
                                 int length,
                                 long sum)
      • longToByteArray

        public static byte[] longToByteArray​(long value)