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

Function AttributeSet_Count

src/graph/entities/attribute_set.c:75–83  ·  view source on GitHub ↗

returns number of attributes within the set

Source from the content-addressed store, hash-verified

73
74// returns number of attributes within the set
75uint16_t AttributeSet_Count
76(
77 const AttributeSet set // set to query
78) {
79 // in case attribute-set is marked as read-only, clear marker
80 AttributeSet _set = (AttributeSet)ATTRIBUTE_SET_CLEAR_MSB(set);
81
82 return (_set == NULL) ? 0 : _set->attr_count;
83}
84
85// retrieves a value from set
86// NOTE: if the key does not exist

Calls

no outgoing calls

Tested by

no test coverage detected