C# 클래스 Warcraft.Core.Hashing.Adler32

파일 보기 프로젝트 열기: Nihlus/libwarcraft

공개 메소드들

메소드 설명
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