C# Class Warcraft.Core.Hashing.Adler32

Exibir arquivo Open project: Nihlus/libwarcraft

Public Methods

Method Description
ComputeChecksum ( Stream stream ) : int

Computes the checksum for a stream, starting from the current position and reading until no more can be read

ComputeChecksum ( int initial, byte data ) : int

Computes the Adler32 checksum for the given data.

ComputeChecksum ( int initial, byte data, int start, int length ) : int

Computes the Adler32 checksum for the given data.

ComputeChecksum ( string path ) : int

Computes the checksum of a file

Method Details

ComputeChecksum() public static method

Computes the checksum for a stream, starting from the current position and reading until no more can be read
public static ComputeChecksum ( Stream stream ) : int
stream Stream The stream to compute the checksum for
return int

ComputeChecksum() public static method

Computes the Adler32 checksum for the given data.
public static ComputeChecksum ( int initial, byte data ) : int
initial int /// Initial value or previous result. Use 1 for the /// first transformation. ///
data byte The data to compute the checksum of
return int

ComputeChecksum() public static method

Computes the Adler32 checksum for the given data.
public static ComputeChecksum ( int initial, byte data, int start, int length ) : int
initial int /// Initial value or previous result. Use 1 for the /// first transformation. ///
data byte The data to compute the checksum of
start int Index of first byte to compute checksum for
length int Number of bytes to compute checksum for
return int

ComputeChecksum() public static method

Computes the checksum of a file
public static ComputeChecksum ( string path ) : int
path string The file to compute the checksum of
return int