The CalculateChecksum method computes an Adler-32
or CRC
checksum on a block of data. If you are dealing with streaming
data, this method can also be used to compute a running checksum. It is provided as a convenience feature for developers that need to calculate a checksum on data without compressing it at all.
Parameters
Parameter
Description
vaData
The data to compute a checksum for.
ChecksumType
Selects the type of checksum. Specify cctCRC32 to have the library compute a CRC-32 checksum. Specify cctAdler32 for an Adler-32 checksum.
lPreviousChecksum
Specify 0 if this is the first (or the only) block of data you want to compute a checksum for. If you are dealing with streaming data and have already computed the checksum for previous data, specify the previously returned checksum so that it can be updated.