MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Set_Contains

Function Set_Contains

src/datatypes/set.c:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13bool Set_Contains(set *s, SIValue v) {
14 unsigned long long const hash = SIValue_HashCode(v);
15 return (raxFind(s, (unsigned char *)&hash, sizeof(hash)) != raxNotFound);
16}
17
18/* Adds v to set. */
19bool Set_Add(set *s, SIValue v) {

Callers 1

test_setFunction · 0.85

Calls 1

SIValue_HashCodeFunction · 0.85

Tested by 1

test_setFunction · 0.68