piece_length = (int)torrent.getPieceLength(); piece_count = torrent.getNumberOfPieces(); int lpl = (int)( torrent.getSize() % piece_length ); if ( lpl == 0 ){ lpl = piece_length; } last_piece_length = lpl; file = _file;
return( new pieceList( piece_number ));