TorrentFileTreeEntry Class

A file of the BitTorrent v2 'file tree' (BEP 52).

public sealed class TorrentFileTreeEntry

Constructors

NameDescription
TorrentFileTreeEntry()

TorrentFileTreeEntry()

TorrentFileTreeEntry.cs
public TorrentFileTreeEntry()

No documentation is available.

Properties

NameDescription
AdditionalKeysThe keys of the file this model does not represent, such as 'attr' (BEP 47). They are written back as they are.
LengthThe size of the file, in bytes.
PathThe segments of the path of the file in the file tree.
PiecesRootThe 'pieces root' key: the root of the SHA-256 merkle tree of the file, 32 bytes. Empty for an empty file.

The keys of the file this model does not represent, such as 'attr' (BEP 47). They are written back as they are.

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

The size of the file, in bytes.

public long Length { get; set; }

Property value

long

The segments of the path of the file in the file tree.

public IReadOnlyList<string> Path { get; set; }

Property value

IReadOnlyList<string>

The 'pieces root' key: the root of the SHA-256 merkle tree of the file, 32 bytes. Empty for an empty file.

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

Property value

ReadOnlyMemory<byte>