public final class JedisClusterCRC16
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getCRC16(byte[] bytes) |
static int |
getCRC16(byte[] bytes,
int s,
int e)
Create a CRC16 checksum from the bytes. implementation is from mp911de/lettuce, modified with
some more optimizations
|
static int |
getCRC16(java.lang.String key) |
static int |
getSlot(byte[] key) |
static int |
getSlot(java.lang.String key) |
public static int getSlot(java.lang.String key)
public static int getSlot(byte[] key)
public static int getCRC16(byte[] bytes,
int s,
int e)
bytes - s - e - public static int getCRC16(byte[] bytes)
public static int getCRC16(java.lang.String key)