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

Method Find

OsiInterface/DivBaseTypes.h:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 ValueType * Find(char const * str) const
145 {
146 auto fs = ToFixedString(str);
147 if (fs) {
148 auto item = HashTable[(uint64_t)fs.Str % HashSize];
149 while (item != nullptr) {
150 if (strcmp(str, item->Key.Str) == 0) {
151 return &item->Value;
152 }
153
154 item = item->Next;
155 }
156 }
157
158 return nullptr;
159 }
160
161 FixedString * FindByValue(ValueType const & value) const
162 {

Callers

nothing calls this directly

Calls 1

ToFixedStringFunction · 0.85

Tested by

no test coverage detected