jonelo.jacksum.algorithm

Class Crc8


public class Crc8
extends AbstractChecksum

A class that can be used to compute the Crc8 of a data stream.

Constructor Summary

Crc8()

Method Summary

byte[]
getByteArray()
long
getValue()
void
reset()
void
update(byte data)
Update the CRC value with a byte data.
void
update(int b)

Constructor Details

Crc8

public Crc8()

Method Details

getByteArray

public byte[] getByteArray()

getValue

public long getValue()

reset

public void reset()

update

public void update(byte data)
Update the CRC value with a byte data.
Parameters:
data - The byte data

update

public void update(int b)