TorrentPieceLayer Class

An entry of the BitTorrent v2 'piece layers' key (BEP 52): the piece hashes of a file.

public sealed class TorrentPieceLayer

Constructors

NameDescription
TorrentPieceLayer()

TorrentPieceLayer()

public TorrentPieceLayer()

No documentation is available.

Properties

NameDescription
HashesThe SHA-256 hashes of the pieces of the file, 32 bytes each, concatenated.
PiecesRootThe 'pieces root' of the file the hashes belong to, 32 bytes.

The SHA-256 hashes of the pieces of the file, 32 bytes each, concatenated.

public ReadOnlyMemory<byte> Hashes { get; set; }

Property value

ReadOnlyMemory<byte>

The 'pieces root' of the file the hashes belong to, 32 bytes.

public ReadOnlyMemory<byte> PiecesRoot { get; set; }

Property value

ReadOnlyMemory<byte>