Crc32

This class implements the CRC-32 checksum algorithm. The digest returned is a little-endian 4 byte string.

Constructors

this
this(Crc32 crc32)

Create a cloned CRC32

this
this(uint polynomial)

Prepare Crc32 to checksum the data with a given polynomial.

Members

Functions

binaryDigest
ubyte[] binaryDigest(ubyte[] buf)
crc32Digest
uint crc32Digest()

Returns the Crc32 digest as a uint

digestSize
uint digestSize()

The Crc32 digestSize is 4

update
Crc32 update(const(void)[] input)

Meta