bool CDownloadTransfer::SelectFragment(const Fragments::List& oPossible, QWORD& nOffset, QWORD& nLength, bool bEndGame) const { ASSUME_LOCK( Transfers.m_pSection ); blockPair oSelection( SelectBlock( oPossible, m_pAvailable, bEndGame ) ); nOffset = oSelection.first; nLength = oSelection.second; return nLength > 0ull; }
void CTests::OnInterfacesNsiselection() { CSelection oSelection(qaWebBrowser); oSelection.OnStartTests(nCommandID); }