MCPcopy Create free account
hub / github.com/amule-project/amule / GetFileByIndex

Method GetFileByIndex

src/SharedFileList.cpp:872–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870
871
872const CKnownFile *CSharedFileList::GetFileByIndex(unsigned int index) const
873{
874 wxMutexLocker lock(list_mut);
875 if ( index >= m_Files_map.size() ) {
876 return NULL;
877 }
878 CKnownFileMap::const_iterator pos = m_Files_map.begin();
879 std::advance(pos, index);
880 return pos->second;
881}
882
883
884CKnownFile* CSharedFileList::GetFileByID(const CMD4Hash& filehash)

Callers 1

FindSharedFilesMethod · 0.45

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected