std.digest.crc

Cyclic Redundancy Check (32-bit) implementation.

Category Functions
Template API CRC  CRC32  CRC64ECMA  CRC64ISO 

OOP API CRC32Digest  CRC64ECMADigest  CRC64ISODigest 
Helpers crcHexString  crc32Of  crc64ECMAOf  crc64ISOOf 

*

  • This module conforms to the APIs defined in std.digest. To understand the
  • differences between the template and the OOP API, see std.digest.
  • This module publicly imports std.digest and can be used as a stand-alone
  • module.

    Note

    CRCs are usually printed with the MSB first. When using
  • toHexString the result will be in an unexpected
  • order. Use toHexString's optional order parameter
  • to specify decreasing order for the correct result. The crcHexString
  • alias can also be used for this purpose.

    License

    Boost License 1.0.

    Authors

    Pavel "EvilOne" Minayev, Alex Rønne Petersen, Johannes Pfau
  • References:
  • Wikipedia on CRC
  • Source: std/digest/crc.d

    Standards

    Implements the 'common' IEEE CRC32 variant
  • (LSB-first order, Initial value uint.max, complement result)
  • CTFE:
  • Digests do not work in CTFE