TorrentFileTreeEntry Class
A file of the BitTorrent v2 'file tree' (BEP 52).
public sealed class TorrentFileTreeEntryConstructors
| Name | Description |
|---|---|
| TorrentFileTreeEntry() |
TorrentFileTreeEntry()
TorrentFileTreeEntry.cspublic TorrentFileTreeEntry()No documentation is available.
Properties
| Name | Description |
|---|---|
| AdditionalKeys | The keys of the file this model does not represent, such as 'attr' (BEP 47). They are written back as they are. |
| Length | The size of the file, in bytes. |
| Path | The segments of the path of the file in the file tree. |
| PiecesRoot | The 'pieces root' key: the root of the SHA-256 merkle tree of the file, 32 bytes. Empty for an empty file. |
AdditionalKeys
TorrentFileTreeEntry.csThe 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; }Property value
Length
TorrentFileTreeEntry.csThe segments of the path of the file in the file tree.
public IReadOnlyList<string> Path { get; set; }Property value
PiecesRoot
TorrentFileTreeEntry.csThe '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; }