TorrentInfo Class

public sealed class TorrentInfo

No documentation is available.

Constructors

NameDescription
TorrentInfo()

TorrentInfo()

TorrentInfo.cs
public TorrentInfo()

No documentation is available.

Properties

NameDescription
AdditionalKeysThe keys of the 'info' dictionary this model does not represent. They are written back as they are.
FileTreeThe files of the BitTorrent v2 'file tree' key (BEP 52), in the order of the tree.
Files
IsPrivate
Length
Md5SumThe 'md5sum' of a single-file torrent's content, when the torrent carries one.
MetaVersionThe 'meta version' key (BEP 52): 2 for a BitTorrent v2 or hybrid torrent.
Name
PieceLength
PiecesThe SHA-1 hashes of the pieces (BitTorrent v1). Empty for a BitTorrent v2 only torrent.
SourceThe 'source' key many private trackers add to make the info-hash unique to them.

AdditionalKeys

TorrentInfo.cs

The keys of the 'info' dictionary this model does not represent. They are written back as they are.

public IDictionary<BencodeString, BencodeValue> AdditionalKeys { get; }

The files of the BitTorrent v2 'file tree' key (BEP 52), in the order of the tree.

public IReadOnlyList<TorrentFileTreeEntry>? FileTree { get; set; }
public IReadOnlyList<TorrentInfoFile>? Files { get; set; }

No documentation is available.

public bool IsPrivate { get; set; }

Property value

bool

No documentation is available.

public long? Length { get; set; }

Property value

long?

No documentation is available.

The 'md5sum' of a single-file torrent's content, when the torrent carries one.

public string? Md5Sum { get; set; }

Property value

string?

MetaVersion

TorrentInfo.cs

The 'meta version' key (BEP 52): 2 for a BitTorrent v2 or hybrid torrent.

public int? MetaVersion { get; set; }

Property value

int?

public string Name { get; set; }

Property value

string

No documentation is available.

PieceLength

TorrentInfo.cs
public long PieceLength { get; set; }

Property value

long

No documentation is available.

The SHA-1 hashes of the pieces (BitTorrent v1). Empty for a BitTorrent v2 only torrent.

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

Property value

ReadOnlyMemory<byte>

The 'source' key many private trackers add to make the info-hash unique to them.

public string? Source { get; set; }

Property value

string?