public TorrentFileInfo(ITorrentFile torrentFile, string fullPath) { TorrentFile = torrentFile; FullPath = fullPath; BitField = new MutableBitField(torrentFile.EndPieceIndex - torrentFile.StartPieceIndex + 1); }
public TorrentFileInfo(ITorrentFile torrentFile, string fullPath) { TorrentFile = torrentFile; FullPath = DownloadCompleteFullPath = DownloadIncompleteFullPath = fullPath; BitField = new BitField(torrentFile.EndPieceIndex - torrentFile.StartPieceIndex + 1); }
public TorrentFileInfo(ITorrentFile torrentFile) : this(torrentFile, torrentFile.Path) { }
public bool IsFileSelected(ITorrentFile file) => selectedFiles.Contains(file.Path);