| 288 | |
| 289 | private: |
| 290 | void InsertToHashMap(T const& key, int keyIdx) |
| 291 | { |
| 292 | auto bucket = (uint32_t)(HashMapHash(key) % HashKeys.size()); |
| 293 | auto prevKeyIdx = HashKeys[bucket]; |
| 294 | if (prevKeyIdx < 0) { |
| 295 | prevKeyIdx = -2 - (int)bucket; |
| 296 | } |
| 297 | |
| 298 | NextIds[keyIdx] = prevKeyIdx; |
| 299 | HashKeys[bucket] = keyIdx; |
| 300 | } |
| 301 | |
| 302 | void ResizeHashMap(unsigned int newSize) |
| 303 | { |
nothing calls this directly
no test coverage detected