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

Function quicklistSetCompressDepth

src/quicklist.c:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112#define COMPRESS_MAX ((1 << QL_COMP_BITS)-1)
113void quicklistSetCompressDepth(quicklist *quicklist, int compress) {
114 if (compress > COMPRESS_MAX) {
115 compress = COMPRESS_MAX;
116 } else if (compress < 0) {
117 compress = 0;
118 }
119 quicklist->compress = compress;
120}
121
122#define FILL_MAX ((1 << (QL_FILL_BITS-1))-1)
123void quicklistSetFill(quicklist *quicklist, int fill) {

Callers 1

quicklistSetOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected