C# 클래스 TorrentHardLinkHelper.Torrents.Hashes

파일 보기 프로젝트 열기: harrywong/torrenthardlinkhelper

공개 메소드들

메소드 설명
IsValid ( byte hash, int hashIndex ) : bool

Determine whether a calculated hash is equal to our stored hash

ReadHash ( int hashIndex ) : byte[]

Returns the hash for a specific piece

비공개 메소드들

메소드 설명
Hashes ( byte hashData, int count ) : System

메소드 상세

IsValid() 공개 메소드

Determine whether a calculated hash is equal to our stored hash
public IsValid ( byte hash, int hashIndex ) : bool
hash byte Hash code to check
hashIndex int Index of hash/piece to verify against
리턴 bool

ReadHash() 공개 메소드

Returns the hash for a specific piece
public ReadHash ( int hashIndex ) : byte[]
hashIndex int Piece/hash index to return
리턴 byte[]