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

Function dictSdsKeyCompare

src/server.cpp:1344–1354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344int dictSdsKeyCompare(void *privdata, const void *key1,
1345 const void *key2)
1346{
1347 int l1,l2;
1348 DICT_NOTUSED(privdata);
1349
1350 l1 = sdslen((sds)key1);
1351 l2 = sdslen((sds)key2);
1352 if (l1 != l2) return 0;
1353 return memcmp(key1, key2, l1) == 0;
1354}
1355
1356void dictSdsNOPDestructor(void *, void *) {}
1357

Callers 2

dictObjKeyCompareFunction · 0.70
dictEncObjKeyCompareFunction · 0.70

Calls 1

sdslenFunction · 0.85

Tested by

no test coverage detected