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

Function zipmapRawKeyLength

src/zipmap.c:182–185  ·  view source on GitHub ↗

Return the total amount used by a key (encoded length + payload) */

Source from the content-addressed store, hash-verified

180
181/* Return the total amount used by a key (encoded length + payload) */
182static unsigned int zipmapRawKeyLength(unsigned char *p) {
183 unsigned int l = zipmapDecodeLength(p);
184 return zipmapEncodeLength(NULL,l) + l;
185}
186
187/* Return the total amount used by a value
188 * (encoded length + single byte free count + payload) */

Callers 3

zipmapRawEntryLengthFunction · 0.85
zipmapNextFunction · 0.85
zipmapGetFunction · 0.85

Calls 2

zipmapDecodeLengthFunction · 0.85
zipmapEncodeLengthFunction · 0.85

Tested by

no test coverage detected