| 276 | } |
| 277 | |
| 278 | uint32_t GlobalStringTable::Hash(char const * s, uint64_t length) |
| 279 | { |
| 280 | if (UseMurmur) { |
| 281 | // D:OS2 DE |
| 282 | return murmur3_32((const uint8_t *)s, length, 0) % 0xFFF1; |
| 283 | } |
| 284 | else { |
| 285 | // D:OS2 classic |
| 286 | uint32_t hash = 0; |
| 287 | for (auto i = 0; i < length; i++) { |
| 288 | hash = *s++ + 33 * hash; |
| 289 | } |
| 290 | |
| 291 | return hash % 0xFFF1; |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | void * EntityWorld::FindComponentByHandle(ObjectHandle componentHandle, ComponentType type) |
| 296 | { |
nothing calls this directly
no test coverage detected