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