tango.util.digest.Crc32

License:
BSD style:

Version:
Initial release: August 2006

author:
James Pelcis

class Crc32: tango.util.digest.Digest.Digest;
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 = 3988292384u);
Prepare Crc32 to checksum the data with a given polynomial.

Params:
uint polynomial The 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);


uint digestSize();
The Crc32 digestSize is 4

ubyte[] binaryDigest(ubyte[] buf = null);


uint crc32Digest();
Returns the Crc32 digest as a uint


Page generated by Ddoc. Copyright (c) 2006 James Pelcis. All rights reserved