MCPcopy Create free account
hub / github.com/apache/qpid-proton / pn_hashcode

Function pn_hashcode

c/src/core/object/object.c:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343uintptr_t pn_hashcode(void *object)
344{
345 if (!object) return 0;
346
347 const pn_class_t *clazz = pni_head(object)->clazz;
348
349 if (clazz->hashcode) {
350 return clazz->hashcode(object);
351 } else {
352 return (uintptr_t) object;
353 }
354}
355
356intptr_t pn_compare(void *a, void *b)
357{

Callers 5

pn_url_hashcodeFunction · 0.85
pn_map_hashcodeFunction · 0.85
pn_list_hashcodeFunction · 0.85
object_test.cppFile · 0.85
test_stringFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_stringFunction · 0.68