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. */
| 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. */ |
| 455 | unsigned 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' |
no test coverage detected