| 204 | } |
| 205 | |
| 206 | static 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 |