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

Function zipmapResize

src/zipmap.c:206–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static inline unsigned char *zipmapResize(unsigned char *zm, unsigned int len) {
207 zm = zrealloc(zm, len, MALLOC_SHARED);
208 zm[len-1] = ZIPMAP_END;
209 return zm;
210}
211
212/* Set key to value, creating the key if it does not already exist.
213 * If 'update' is not NULL, *update is set to 1 if the key was

Callers 2

zipmapSetFunction · 0.85
zipmapDelFunction · 0.85

Calls 1

zreallocFunction · 0.85

Tested by

no test coverage detected