Package loci.common
Class CRC
java.lang.Object
loci.common.CRC
public class CRC
extends java.lang.Object
A simple class to hold and calculate the CRC for sanity checking the data.
-
Field Summary
Fields Modifier and Type Field Description static int[]
CRC_32_TABLE
-
Constructor Summary
Constructors Constructor Description CRC()
-
Method Summary
Modifier and Type Method Description int
getFinalCRC()
int
getGlobalCRC()
void
initialiseCRC()
void
setGlobalCRC(int newCrc)
void
updateCRC(int inCh)
-
Field Details
-
CRC_32_TABLE
public static final int[] CRC_32_TABLE
-
-
Constructor Details
-
CRC
public CRC()
-
-
Method Details
-
initialiseCRC
public void initialiseCRC() -
getFinalCRC
public int getFinalCRC() -
getGlobalCRC
public int getGlobalCRC() -
setGlobalCRC
public void setGlobalCRC(int newCrc) -
updateCRC
public void updateCRC(int inCh)
-