CRC32 Constructor (polynomial, reverseBits)

DotNetZip

Ionic Zip Library v1.9.1.6 CRC32 Constructor (polynomial, reverseBits)
ReferenceIonic.CrcCRC32CRC32(Int32, Boolean)
Create an instance of the CRC32 class, specifying the polynomial and whether to reverse data bits or not.
Declaration Syntax
C# Visual Basic Visual C++
public CRC32(
	int polynomial,
	bool reverseBits
)
Public Sub New ( _
	polynomial As Integer, _
	reverseBits As Boolean _
)
public:
CRC32(
	int polynomial, 
	bool reverseBits
)
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.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)