tango.util.digest.Crc32

License:

BSD style: see license.txt

Version:

Initial release: August 2006

Author:

James Pelcis
class Crc32 : Digest [final]
This class implements the CRC-32 checksum algorithm. The digest returned is a little-endian 4 byte string.
this(Crc32 crc32)
Create a cloned CRC32
this(uint polynomial = 0xEDB88320U)
Prepare Crc32 to checksum the data with a given polynomial.

Parameters:

polynomialThe magic CRC number to base calculations on. The default compatible with ZIP, PNG, ethernet and others. Note: This default value has poor error correcting properties.
Crc32 update(const(void[]) input) [override]
uint digestSize() [override]
The Crc32 digestSize is 4
ubyte[] binaryDigest(ubyte[] buf = null) [override]
uint crc32Digest()
Returns the Crc32 digest as a uint