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

Function lpDelete

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

Remove the element pointed by 'p', and return the resulting listpack. * If 'newp' is not NULL, the next element pointer (to the right of the * deleted one) is returned by reference. If the deleted element was the * last one, '*newp' is set to NULL. */

Source from the content-addressed store, hash-verified

807 * deleted one) is returned by reference. If the deleted element was the
808 * last one, '*newp' is set to NULL. */
809unsigned char *lpDelete(unsigned char *lp, unsigned char *p, unsigned char **newp) {
810 return lpInsert(lp,NULL,0,p,LP_REPLACE,newp);
811}
812
813/* Return the total number of bytes the listpack is composed of. */
814uint32_t lpBytes(unsigned char *lp) {

Callers

nothing calls this directly

Calls 1

lpInsertFunction · 0.85

Tested by

no test coverage detected