Class CRC64
- java.lang.Object
-
- com.moilioncircle.redis.replicator.util.CRC64
-
public class CRC64 extends Object
- Since:
- 2.5.0
- Author:
- Leon Chen
-
-
Field Summary
Fields Modifier and Type Field Description static long[]LOOKUP_TABLE
-
Constructor Summary
Constructors Constructor Description CRC64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcrc64(byte[] bytes)static longcrc64(byte[] bytes, int start, int length)static longcrc64(byte[] bytes, int start, int length, long sum)static longcrc64(byte[] bytes, long sum)static longcrc64(byte b, long sum)static longcrc64(ByteBuffer buf)static longcrc64(ByteBuffer buf, long sum)static longcrc64(List<ByteBuffer> list)static byte[]longToByteArray(long value)
-
-
-
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- bufsum- 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)
-
-