public final class CRC8 extends Object
| Constructor and Description |
|---|
CRC8() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
calc(byte[] data,
int len)
Calculate the CRC value with data from a byte array.
|
static byte |
update(byte data,
byte crc)
Update the CRC value with a byte data.
|
static byte |
updateBlock(byte[] data,
int len,
byte crc)
Update the CRC value with data from a byte array.
|
public static byte update(byte data,
byte crc)
data - The byte datacrc - The starting CRC valuepublic static byte updateBlock(byte[] data,
int len,
byte crc)
data - The byte arraylen - The byte array lengthcrc - The starting CRC valuepublic static byte calc(byte[] data,
int len)
data - The byte arraylen - The byte array lengthCopyright © 2004–2017. All rights reserved.