Click or drag to resize

CRC32 Class

Computes a CRC-32. The CRC-32 algorithm is parameterized - you can set the polynomial and enable or disable bit reversal. This can be used for GZIP, BZip2, or ZIP.
Inheritance Hierarchy

Namespace:  Atalasoft.PdfDoc.MidLevel.Ionic.Crc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: (.NET 4.5.2, x86)
public class CRC32

The CRC32 type exposes the following members.

Public methodCRC32
Create an instance of the CRC32 class using the default settings: no bit reversal, and a polynomial of 0xEDB88320.
Public methodCRC32(Boolean)
Create an instance of the CRC32 class, specifying whether to reverse data bits or not.
Public methodCRC32(Int32, Boolean)
Create an instance of the CRC32 class, specifying the polynomial and whether to reverse data bits or not.
Public propertyCrc32Result
Indicates the current CRC for all blocks slurped in.
Public propertyTotalBytesRead
Indicates the total number of bytes applied to the CRC.
Public methodCombine
Combines the given CRC32 value with the current running total.
Public methodComputeCrc32
Get the CRC32 for the given (word,byte) combo. This is a computation defined by PKzip for PKZIP 2.0 (weak) encryption.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCrc32
Returns the CRC32 for the specified stream.
Public methodGetCrc32AndCopy
Returns the CRC32 for the specified stream, and writes the input into the output stream.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Reset the CRC-32 class - clear the CRC "remainder register."
Public methodSlurpBlock
Update the value for the running CRC32 using the given block of bytes. This is useful when using the CRC32() class in a Stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateCRC(Byte)
Process one byte in the CRC.
Public methodUpdateCRC(Byte, Int32)
Process a run of N identical bytes into the CRC.
This type is used internally by DotNetZip; it is generally not used directly by applications wishing to create, read, or manipulate zip archive files.
See Also