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