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