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.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class CRC32
Public Class CRC32
public ref class CRC32
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
CRC32()()()() |
Create an instance of the CRC32 class using the default settings: no
bit reversal, and a polynomial of 0xEDB88320.
|
|
CRC32(Boolean) |
Create an instance of the CRC32 class, specifying whether to reverse
data bits or not.
|
|
CRC32(Int32, Boolean) |
Create an instance of the CRC32 class, specifying the polynomial and
whether to reverse data bits or not.
|
|
Combine(Int32, Int32) |
Combines the given CRC32 value with the current running total.
|
|
ComputeCrc32(Int32, Byte) |
Get the CRC32 for the given (word,byte) combo. This is a
computation defined by PKzip for PKZIP 2.0 (weak) encryption.
|
|
Crc32Result |
Indicates the current CRC for all blocks slurped in.
|
|
Equals(Object) | (Inherited from Object.) |
|
Finalize()()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetCrc32(Stream) |
Returns the CRC32 for the specified stream.
|
|
GetCrc32AndCopy(Stream, Stream) |
Returns the CRC32 for the specified stream, and writes the input into the
output stream.
|
|
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Reset()()()() |
Reset the CRC-32 class - clear the CRC "remainder register."
|
|
SlurpBlock(array<Byte>[]()[][], Int32, Int32) |
Update the value for the running CRC32 using the given block of bytes.
This is useful when using the CRC32() class in a Stream.
|
|
ToString()()()() | (Inherited from Object.) |
|
TotalBytesRead |
Indicates the total number of bytes applied to the CRC.
|
|
UpdateCRC(Byte) |
Process one byte in the CRC.
|
|
UpdateCRC(Byte, Int32) |
Process a run of N identical bytes into the CRC.
|
Remarks
This type is used internally by DotNetZip; it is generally not used
directly by applications wishing to create, read, or manipulate zip
archive files.
Inheritance Hierarchy
Object | |
CRC32 |