|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kc7bfi.jflac.util.CRC16
public final class CRC16
Utility class to calculate 16-bit CRC.
| Constructor Summary | |
|---|---|
CRC16()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRC16()
| Method Detail |
|---|
public static short update(byte data,
short crc)
data - The byte datacrc - The starting CRC value
public static short updateBlock(byte[] data,
int len,
short crc)
data - The byte array datalen - The byte array lengthcrc - The starting CRC value
public static short calc(byte[] data,
int len)
data - The byte datalen - The byte array length
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||