--------------------------------- MemoryPackage::GetEntry Get a package entry from a package using its hashed ID
| 38 | // Get a package entry from a package using its hashed ID |
| 39 | // |
| 40 | MemoryPackage::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 |
nothing calls this directly
no outgoing calls
no test coverage detected