MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / raxStackPop

Function raxStackPop

src/rax.c:131–135  ·  view source on GitHub ↗

Pop an item from the stack, the function returns NULL if there are no * items to pop. */

Source from the content-addressed store, hash-verified

129/* Pop an item from the stack, the function returns NULL if there are no
130 * items to pop. */
131static inline void *raxStackPop(raxStack *ts) {
132 if (ts->items == 0) return NULL;
133 ts->items--;
134 return ts->stack[ts->items];
135}
136
137/* Return the stack item at the top of the stack without actually consuming
138 * it. */

Callers 5

raxRemoveFunction · 0.85
raxIteratorNextStepFunction · 0.85
raxIteratorPrevStepFunction · 0.85
raxSeekFunction · 0.85
raxRandomWalkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected