public class CRC8 extends Object
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
| Modifier and Type | Method and Description |
|---|---|
static int |
compute(byte[] dataToCrc)
Perform the CRC8 on an array of data elements based on a
zero seed.
|
static int |
compute(byte[] dataToCrc,
int seed)
Perform the CRC8 on an array of data elements based on the
provided seed.
|
static int |
compute(byte[] dataToCrc,
int off,
int len)
Perform the CRC8 on an array of data elements based on a
zero seed.
|
static int |
compute(byte[] dataToCrc,
int off,
int len,
int seed)
Perform the CRC8 on an array of data elements based on the
provided seed.
|
static int |
compute(int dataToCRC)
Perform the CRC8 on the data element based on a zero seed.
|
static int |
compute(int dataToCRC,
int seed)
Perform the CRC8 on the data element based on the provided seed.
|
public static int compute(byte[] dataToCrc)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the CRC8public static int compute(byte[] dataToCrc,
int seed)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the CRC8seed - seed to use for CRC8public static int compute(byte[] dataToCrc,
int off,
int len)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the CRC8off - offset into arraylen - length of data to crcpublic static int compute(byte[] dataToCrc,
int off,
int len,
int seed)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the CRC8off - offset into arraylen - length of data to crcseed - seed to use for CRC8public static int compute(int dataToCRC)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCRC - data element on which to perform the CRC8public static int compute(int dataToCRC,
int seed)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCRC - data element on which to perform the CRC8seed - seed the CRC8 with this value