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

Function Set_Add

src/datatypes/set.c:19–22  ·  view source on GitHub ↗

Adds v to set. */

Source from the content-addressed store, hash-verified

17
18/* Adds v to set. */
19bool Set_Add(set *s, SIValue v) {
20 unsigned long long const hash = SIValue_HashCode(v);
21 return raxTryInsert(s, (unsigned char *)&hash, sizeof(hash), NULL, NULL);
22}
23
24/* Removes v from set. */
25void Set_Remove(set *s, SIValue v) {

Callers 2

AR_DISTINCTFunction · 0.85
test_setFunction · 0.85

Calls 1

SIValue_HashCodeFunction · 0.85

Tested by 1

test_setFunction · 0.68