Пример #1
0
 public TorrentFileInfo(ITorrentFile torrentFile, string fullPath)
 {
     TorrentFile = torrentFile;
     FullPath    = fullPath;
     BitField    = new MutableBitField(torrentFile.EndPieceIndex - torrentFile.StartPieceIndex + 1);
 }
Пример #2
0
 public TorrentFileInfo(ITorrentFile torrentFile, string fullPath)
 {
     TorrentFile = torrentFile;
     FullPath    = DownloadCompleteFullPath = DownloadIncompleteFullPath = fullPath;
     BitField    = new BitField(torrentFile.EndPieceIndex - torrentFile.StartPieceIndex + 1);
 }
Пример #3
0
 public TorrentFileInfo(ITorrentFile torrentFile)
     : this(torrentFile, torrentFile.Path)
 {
 }
Пример #4
0
 public bool IsFileSelected(ITorrentFile file) =>
 selectedFiles.Contains(file.Path);