C# Class ZForge.Zip.CRC32

Calculates a 32bit Cyclic Redundancy Checksum (CRC) using the same polynomial used by Zip. This type ie generally not used directly by applications wishing to create, read, or manipulate zip archive files.
Exibir arquivo Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
CRC32 ( ) : System

Construct an instance of the CRC32 class, pre-initialising the table for speed of lookup.

GetCrc32 ( System input ) : UInt32

Returns the CRC32 for the specified stream.

GetCrc32AndCopy ( System input, System output ) : UInt32

Returns the CRC32 for the specified stream, and writes the input into the output stream.

Method Details

CRC32() public method

Construct an instance of the CRC32 class, pre-initialising the table for speed of lookup.
public CRC32 ( ) : System
return System

GetCrc32() public method

Returns the CRC32 for the specified stream.
public GetCrc32 ( System input ) : UInt32
input System The stream over which to calculate the CRC32
return System.UInt32

GetCrc32AndCopy() public method

Returns the CRC32 for the specified stream, and writes the input into the output stream.
public GetCrc32AndCopy ( System input, System output ) : UInt32
input System The stream over which to calculate the CRC32
output System The stream into which to deflate the input
return System.UInt32