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

Function intsetFind

src/intset.c:256–259  ·  view source on GitHub ↗

Determine whether a value belongs to this set */

Source from the content-addressed store, hash-verified

254
255/* Determine whether a value belongs to this set */
256uint8_t intsetFind(intset *is, int64_t value) {
257 uint8_t valenc = _intsetValueEncoding(value);
258 return valenc <= intrev32ifbe(is->encoding) && intsetSearch(is,value,NULL);
259}
260
261/* Return random member */
262int64_t intsetRandom(intset *is) {

Callers 4

zuiFindFunction · 0.85
intsetTestFunction · 0.85
setTypeIsMemberFunction · 0.85
sinterGenericCommandFunction · 0.85

Calls 2

_intsetValueEncodingFunction · 0.85
intsetSearchFunction · 0.85

Tested by

no test coverage detected