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

Method GetString

Engine/source/EtCore/Hashing/HashStringRegistry.cpp:85–100  ·  view source on GitHub ↗

------------------------------- HashStringRegistry::GetString Access the string value associated with a hash

Source from the content-addressed store, hash-verified

83// Access the string value associated with a hash
84//
85char const* HashStringRegistry::GetString(T_Hash const hash) const
86{
87 if (hash == 0u)
88 {
89 return nullptr;
90 }
91
92 auto const foundIt = m_RegisteredHashes.find(hash);
93
94 if (foundIt != m_RegisteredHashes.cend())
95 {
96 return foundIt->second.c_str();
97 }
98
99 return nullptr;
100}
101
102
103} // namespace core

Callers 1

GetStoredStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected