Exemple #1
0
 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);
 }
Exemple #2
0
 private static void Pf1_FileCreating(Partfile partfile, EventArgs e)
 {
     Console.WriteLine($"{partfile.Filename} creating ...");
 }