C# Класс Warcraft.Core.Hashing.Adler32

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ComputeChecksum() публичный статический Метод

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
Результат int

ComputeChecksum() публичный статический Метод

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
Результат int

ComputeChecksum() публичный статический Метод

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
Результат int

ComputeChecksum() публичный статический Метод

Computes the checksum of a file
public static ComputeChecksum ( string path ) : int
path string The file to compute the checksum of
Результат int