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.
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetCrc32() public méthode

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

GetCrc32AndCopy() public méthode

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
Résultat System.UInt32