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

Method Hash

OsiInterface/DivInterface.cpp:278–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

murmur3_32Function · 0.85

Tested by

no test coverage detected