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

Function zipmapBlobLen

src/zipmap.c:371–375  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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. */
371size_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.

Callers

nothing calls this directly

Calls 1

zipmapLookupRawFunction · 0.85

Tested by

no test coverage detected