MCPcopy Create free account
hub / github.com/git/git / cb_lookup

Function cb_lookup

cbtree.c:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101struct cb_node *cb_lookup(struct cb_tree *t, const uint8_t *k, size_t klen)
102{
103 struct cb_node *p = cb_internal_best_match(t->root, k, klen);
104
105 return p && !memcmp(cb_node_key(t, p), k, klen) ? p : NULL;
106}
107
108static int cb_descend(struct cb_node *p, cb_iter fn, void *arg)
109{

Callers 1

oidtree_lookupFunction · 0.85

Calls 2

cb_internal_best_matchFunction · 0.85
cb_node_keyFunction · 0.85

Tested by

no test coverage detected