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

Function zipmapExists

src/zipmap.c:349–351  ·  view source on GitHub ↗

Return 1 if the key exists, otherwise 0 is returned. */

Source from the content-addressed store, hash-verified

347
348/* Return 1 if the key exists, otherwise 0 is returned. */
349int zipmapExists(unsigned char *zm, unsigned char *key, unsigned int klen) {
350 return zipmapLookupRaw(zm,key,klen,NULL) != NULL;
351}
352
353/* Return the number of entries inside a zipmap */
354unsigned int zipmapLen(unsigned char *zm) {

Callers

nothing calls this directly

Calls 1

zipmapLookupRawFunction · 0.85

Tested by

no test coverage detected