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

Function quicklistPush

app/redis-6.2.6/src/quicklist.c:1438–1445  ·  view source on GitHub ↗

Wrapper to allow argument-based switching between HEAD/TAIL pop */

Source from the content-addressed store, hash-verified

1436
1437/* Wrapper to allow argument-based switching between HEAD/TAIL pop */
1438void quicklistPush(quicklist *quicklist, void *value, const size_t sz,
1439 int where) {
1440 if (where == QUICKLIST_HEAD) {
1441 quicklistPushHead(quicklist, value, sz);
1442 } else if (where == QUICKLIST_TAIL) {
1443 quicklistPushTail(quicklist, value, sz);
1444 }
1445}
1446
1447/* Create or update a bookmark in the list which will be updated to the next node
1448 * automatically when the one referenced gets deleted.

Callers 1

listTypePushFunction · 0.85

Calls 2

quicklistPushHeadFunction · 0.85
quicklistPushTailFunction · 0.85

Tested by

no test coverage detected