Interface CRC32
access this type via: data.checksum.CRC32 (provides, requires or uses)
API to compute a 32-bit checksum on some binary data.
Functions
int4 makeCRC(int4 crc, byte buf[])
int4 makeCRC(int4 crc, byte buf[])
Compute the CRC32 value for the given binary data. Note that this function can be called repeatedly on sequential fragments of a stream of data to iteratively compute the overall checksum.
crc The value of a checksum computer so far, or 0 if this is the first time that the function is being called for this data stream.
buf A chunk of the data stream (or the entire data) on which to compute the checksum.
returns: The checksum value for this data.