Lines Matching refs:nPart
3258 void CPartFile::RequestAICHRecovery(uint16 nPart)
3266 if (GetPartSize(nPart) <= EMBLOCKSIZE)
3268 if (CAICHHashSet::IsClientRequestPending(this, nPart)){
3274 if (m_pAICHHashSet->IsPartDataAvailable(nPart*PARTSIZE)){
3276 AICHRecoveryDataAvailable(nPart);
3280 wxASSERT( nPart < GetPartCount() );
3335 pClient->SendAICHRequest(this, nPart);
3340 void CPartFile::AICHRecoveryDataAvailable(uint16 nPart)
3342 if (GetPartCount() < nPart){
3348 uint32 length = GetPartSize(nPart);
3350 if (IsComplete(nPart)) {
3351 AddDebugLogLineN(logAICHRecovery, CFormat(wxT("Processing AICH Recovery data: The part (%u) is already complete, canceling")) % nPart);
3357 CAICHHashTree* pVerifiedHash = m_pAICHHashSet->m_pHashTree.FindHash(nPart*PARTSIZE, length);
3365 CreateHashFromFile(m_hpartfile, PARTSIZE * nPart, length, NULL, &htOurHash);
3391 FillGap(PARTSIZE*nPart+pos, PARTSIZE*nPart + pos + (nBlockSize-1));
3392 RemoveBlockFromList(PARTSIZE*nPart, PARTSIZE*nPart + (nBlockSize-1));
3395 m_CorruptionBlackBox->VerifiedData(true, nPart, pos, pos + nBlockSize - 1);
3398 m_CorruptionBlackBox->VerifiedData(false, nPart, pos, pos + nBlockSize - 1);
3404 if (IsComplete(nPart)) {
3407 if (!HashSinglePart(nPart)) {
3409 CFormat(wxT("Processing AICH Recovery data: The part (%u) got completed while recovering - but MD4 says it corrupt! Setting hashset to error state, deleting part")) % nPart);
3412 AddGap(nPart);
3417 CFormat(wxT("Processing AICH Recovery data: The part (%u) got completed while recovering and MD4 agrees")) % nPart);
3436 EraseFirstValue(m_corrupted_list, nPart);
3445 % nPart