Ionic Zip Library v1.9.1.6
CRC32 Constructor (polynomial, reverseBits)
Create an instance of the CRC32 class, specifying the polynomial and
whether to reverse data bits or not.
Declaration Syntax
Parameters
- polynomial (Int32)
- The polynomial to use for the CRC, expressed in the reversed (LSB) format: the highest ordered bit in the polynomial value is the coefficient of the 0th power; the second-highest order bit is the coefficient of the 1 power, and so on. Expressed this way, the polynomial for the CRC-32C used in IEEE 802.3, is 0xEDB88320.
- reverseBits (Boolean)
- specify true if the instance should reverse data bits.
Remarks
In the CRC-32 used by BZip2, the bits are reversed. Therefore if you want a CRC32 with compatibility with BZip2, you should pass true here for the reverseBits parameter. In the CRC-32 used by GZIP and PKZIP, the bits are not reversed; Therefore if you want a CRC32 with compatibility with those, you should pass false for the reverseBits parameter.