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

Function lpNext

app/redis-6.2.6/src/listpack.c:455–461  ·  view source on GitHub ↗

If 'p' points to an element of the listpack, calling lpNext() will return * the pointer to the next element (the one on the right), or NULL if 'p' * already pointed to the last element of the listpack. */

Source from the content-addressed store, hash-verified

453 * the pointer to the next element (the one on the right), or NULL if 'p'
454 * already pointed to the last element of the listpack. */
455unsigned char *lpNext(unsigned char *lp, unsigned char *p) {
456 assert(p);
457 p = lpSkip(p);
458 if (p[0] == LP_EOF) return NULL;
459 lpAssertValidEntry(lp, lpBytes(lp), p);
460 return p;
461}
462
463/* If 'p' points to an element of the listpack, calling lpPrev() will return
464 * the pointer to the previous element (the one on the left), or NULL if 'p'

Callers 9

lpLengthFunction · 0.85
lpSeekFunction · 0.85
lpGetEdgeStreamIDFunction · 0.85
streamLogListpackContentFunction · 0.85
streamAppendItemFunction · 0.85
streamTrimFunction · 0.85
streamIteratorGetIDFunction · 0.85
streamIteratorGetFieldFunction · 0.85

Calls 3

lpSkipFunction · 0.85
lpAssertValidEntryFunction · 0.85
lpBytesFunction · 0.85

Tested by

no test coverage detected