src/MonoTorrent.Client/MonoTorrent/Torrent.cs
/// <summary>
/// This method is called internally to read out the hashes from the info section of the
/// .torrent file.
/// </summary>
/// <param name="data">The byte[]containing the hashes from the .torrent file</param>
This method is called internally to read out the hashes from the info section of the
.torrent file.
This method is called internally to read out the hashes from the info section of the . torrent file .
void LoadHashPieces (ReadOnlyMemory<byte> data)
        {
            if (data.Length % 20 != 0)
                throw new TorrentException ("Invalid infohash detected");
            Pieces = new Hashes (data, data.Length / 20);
        }
void LoadHashPieces ( ReadOnlyMemory < byte > data ) { if ( data . Length % 20 != 0 ) throw new TorrentException ( " " ) ; Pieces = new Hashes ( data , data . Length / 20 ) ; }
This method is called internally to read out the hashes from the info section of the
.torrent file.
This method is called internally to read out the hashes from the info section of the . torrent file .
data
ReadOnlyMemory<byte>
The byte[]containing the hashes from the .torrent file
The byte [] containing the hashes from the . torrent file