MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetItem

Method GetItem

src/engine/shared/datafile.cpp:845–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845void *CDataFileReader::GetItem(int Index, int *pType, int *pId, CUuid *pUuid)
846{
847 dbg_assert(m_pDataFile != nullptr, "File not open");
848
849 CDatafileItem *pItem = m_pDataFile->GetItem(Index);
850 const int ExternalType = GetExternalItemType(pItem->Type(), pUuid);
851 if(pType)
852 {
853 *pType = ExternalType;
854 }
855 if(pId)
856 {
857 *pId = pItem->Id();
858 }
859 return static_cast<void *>(pItem + 1);
860}
861
862void CDataFileReader::GetType(int Type, int *pStart, int *pNum)
863{

Callers 1

FindItemIndexMethod · 0.45

Calls 2

TypeMethod · 0.45
IdMethod · 0.45

Tested by

no test coverage detected