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

Function zipmapRawEntryLength

src/zipmap.c:201–204  ·  view source on GitHub ↗

If 'p' points to a key, this function returns the total amount of * bytes used to store this entry (entry = key + associated value + trailing * free space if any). */

Source from the content-addressed store, hash-verified

199 * bytes used to store this entry (entry = key + associated value + trailing
200 * free space if any). */
201static unsigned int zipmapRawEntryLength(unsigned char *p) {
202 unsigned int l = zipmapRawKeyLength(p);
203 return l + zipmapRawValueLength(p+l);
204}
205
206static inline unsigned char *zipmapResize(unsigned char *zm, unsigned int len) {
207 zm = zrealloc(zm, len, MALLOC_SHARED);

Callers 2

zipmapSetFunction · 0.85
zipmapDelFunction · 0.85

Calls 2

zipmapRawKeyLengthFunction · 0.85
zipmapRawValueLengthFunction · 0.85

Tested by

no test coverage detected