MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetEntry

Method GetEntry

Engine/source/EtCore/FileSystem/Package/MemoryPackage.cpp:40–52  ·  view source on GitHub ↗

--------------------------------- MemoryPackage::GetEntry Get a package entry from a package using its hashed ID

Source from the content-addressed store, hash-verified

38// Get a package entry from a package using its hashed ID
39//
40MemoryPackage::PackageEntry const* MemoryPackage::GetEntry(HashString const id) const
41{
42 auto findResult = m_Entries.find(id);
43
44 // nullptr indicates we didn't find an entry with the ID
45 if (findResult == m_Entries.cend())
46 {
47 return nullptr;
48 }
49
50 // pointer to value
51 return &(findResult->second);
52}
53
54//---------------------------------
55// MemoryPackage::GetEntryData

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected