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

Function strEntryBytesSmall

src/ziplist.c:1837–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1835}
1836
1837static size_t strEntryBytesSmall(size_t slen) {
1838 return slen + zipStorePrevEntryLength(NULL, 0) + zipStoreEntryEncoding(NULL, 0, slen);
1839}
1840
1841static size_t strEntryBytesLarge(size_t slen) {
1842 return slen + zipStorePrevEntryLength(NULL, ZIP_BIG_PREVLEN) + zipStoreEntryEncoding(NULL, 0, slen);

Callers 1

ziplistTestFunction · 0.85

Calls 2

zipStorePrevEntryLengthFunction · 0.85
zipStoreEntryEncodingFunction · 0.85

Tested by

no test coverage detected