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

Function lpAssertValidEntry

src/listpack.c:926–928  ·  view source on GitHub ↗

Validate that the entry doesn't reach outside the listpack allocation. */

Source from the content-addressed store, hash-verified

924
925/* Validate that the entry doesn't reach outside the listpack allocation. */
926static inline void lpAssertValidEntry(unsigned char* lp, size_t lpbytes, unsigned char *p) {
927 assert(lpValidateNext(lp, &p, lpbytes));
928}
929
930/* Validate the integrity of the data structure.
931 * when `deep` is 0, only the integrity of the header is validated.

Callers 3

lpNextFunction · 0.85
lpPrevFunction · 0.85
lpFirstFunction · 0.85

Calls 1

lpValidateNextFunction · 0.85

Tested by

no test coverage detected