C# Класс TorrentHardLinkHelper.Torrents.Hashes

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

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

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