Lines Matching defs:part
2 // This file is part of the aMule Project.
53 CHashingTask::CHashingTask(const CPath& path, const CPath& filename, const CPartFile* part)
55 : CThreadTask(wxT("Hashing"), path.JoinPaths(filename).GetPrintable(), (part ? ETP_High : ETP_Normal)),
59 m_owner(part)
66 if (part && !part->GetGapList().empty()) {
148 // This loops creates the part-hashes, loop-de-loop.
150 for (uint16 part = 0; part < knownfile->GetPartCount() && !TestDestroy(); part++) {
151 if (CreateNextPartHash(file, part, knownfile.get(), m_toHash) == false) {
207 bool CHashingTask::CreateNextPartHash(CFileAutoClose& file, uint16 part, CKnownFile* owner, EHashes toHash)
211 const uint64 offset = part * PARTSIZE;
213 const uint64 partLength = owner->GetPartSize(part);