public TorrentStream(Torrent torrent, Partfile pf, long distance) : base(pf) { this.torrent = torrent; StartPos = torrent.file.GetStartPosition(pf.Filename); EndPos = StartPos + Length; LastPiece = FilePosToPiece(Length); }
private static void Pf1_FileCreating(Partfile partfile, EventArgs e) { Console.WriteLine($"{partfile.Filename} creating ..."); }