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

Function insertHelper

src/ziplist.c:1821–1826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1819}
1820
1821static unsigned char *insertHelper(unsigned char *zl, char ch, size_t len, unsigned char *pos) {
1822 assert(len <= ZIP_BIG_PREVLEN);
1823 unsigned char data[ZIP_BIG_PREVLEN] = {0};
1824 memset(data, ch, len);
1825 return ziplistInsert(zl, pos, data, len);
1826}
1827
1828static int compareHelper(unsigned char *zl, char ch, size_t len, int index) {
1829 assert(len <= ZIP_BIG_PREVLEN);

Callers 1

ziplistTestFunction · 0.85

Calls 1

ziplistInsertFunction · 0.85

Tested by

no test coverage detected