Same as lpFirst but without validation assert, to be used right before lpValidateNext. */
| 866 | |
| 867 | /* Same as lpFirst but without validation assert, to be used right before lpValidateNext. */ |
| 868 | unsigned char *lpValidateFirst(unsigned char *lp) { |
| 869 | unsigned char *p = lp + LP_HDR_SIZE; /* Skip the header. */ |
| 870 | if (p[0] == LP_EOF) return NULL; |
| 871 | return p; |
| 872 | } |
| 873 | |
| 874 | /* Validate the integrity of a single listpack entry and move to the next one. |
| 875 | * The input argument 'pp' is a reference to the current record and is advanced on exit. |
no outgoing calls
no test coverage detected