Struct crc32

Synopsis

#include "breeze/checksum/crc.hpp"

struct crc32

Description

Traits for CRC-32, as used by Ethernet, Serial ATA, PKZIP, Gzip, Bzip2, PNG.

See
crc.

Source

Lines 228-240 in breeze/checksum/crc.hpp.

struct crc32
{
    typedef std::uint32_t   value_type ;

    static int        const width       = 32         ;
    static value_type const poly        = 0x04C11DB7 ;
    static value_type const init        = 0xFFFFFFFF ;
    static bool       const reflect_in  = true       ;
    static bool       const reflect_out = true       ;
    static value_type const xor_out     = 0xFFFFFFFF ;

    static value_type const check       = 0xCBF43926 ;
} ;