MCPcopy Create free account
hub / github.com/F-Stack/f-stack / intsetNew

Function intsetNew

app/redis-6.2.6/src/intset.c:98–103  ·  view source on GitHub ↗

Create an empty intset. */

Source from the content-addressed store, hash-verified

96
97/* Create an empty intset. */
98intset *intsetNew(void) {
99 intset *is = zmalloc(sizeof(intset));
100 is->encoding = intrev32ifbe(INTSET_ENC_INT16);
101 is->length = 0;
102 return is;
103}
104
105/* Resize the intset */
106static intset *intsetResize(intset *is, uint32_t len) {

Callers 3

createIntsetObjectFunction · 0.85
createSetFunction · 0.85
intsetTestFunction · 0.85

Calls 1

zmallocFunction · 0.85

Tested by

no test coverage detected