Return the raw size in bytes of a zipmap, so that we can serialize * the zipmap on disk (or everywhere is needed) just writing the returned * amount of bytes of the C array starting at the zipmap pointer. */
| 369 | * the zipmap on disk (or everywhere is needed) just writing the returned |
| 370 | * amount of bytes of the C array starting at the zipmap pointer. */ |
| 371 | size_t zipmapBlobLen(unsigned char *zm) { |
| 372 | unsigned int totlen; |
| 373 | zipmapLookupRaw(zm,NULL,0,&totlen); |
| 374 | return totlen; |
| 375 | } |
| 376 | |
| 377 | /* Validate the integrity of the data structure. |
| 378 | * when `deep` is 0, only the integrity of the header is validated. |
nothing calls this directly
no test coverage detected