MCPcopy Create free account
hub / github.com/antirez/ds4 / raxNext

Function raxNext

rax.c:2113–2123  ·  view source on GitHub ↗

Go to the next element in the scope of the iterator 'it'. * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */

Source from the content-addressed store, hash-verified

2111 * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is
2112 * returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */
2113int raxNext(raxIterator *it) {
2114 if (!raxIteratorNextStep(it,0)) {
2115 errno = ENOMEM;
2116 return 0;
2117 }
2118 if (it->flags & RAX_ITER_EOF) {
2119 errno = 0;
2120 return 0;
2121 }
2122 return 1;
2123}
2124
2125/* Go to the previous element in the scope of the iterator 'it'.
2126 * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is

Callers

nothing calls this directly

Calls 1

raxIteratorNextStepFunction · 0.85

Tested by

no test coverage detected