MCPcopy Create free account
hub / github.com/Norbyte/ositools / Find

Method Find

OsiInterface/DivBaseTypes.h:204–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 Node ** HashTable;
203
204 ValueType * Find(char const * str) const
205 {
206 auto fs = ToFixedString(str);
207 if (fs) {
208 auto item = HashTable[(uint64_t)fs.Str % HashSize];
209 while (item != nullptr) {
210 if (fs.Str == item->Key.Str) {
211 return &item->Value;
212 }
213
214 item = item->Next;
215 }
216 }
217
218 return nullptr;
219 }
220 };
221
222 template <class T>

Callers

nothing calls this directly

Calls 1

ToFixedStringFunction · 0.85

Tested by

no test coverage detected