MCPcopy Index your code
hub / github.com/git/git / cb_init

Function cb_init

cbtree.h:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33static inline void cb_init(struct cb_tree *t,
34 ptrdiff_t key_offset)
35{
36 struct cb_tree blank = {
37 .key_offset = key_offset,
38 };
39 memcpy(t, &blank, sizeof(*t));
40}
41
42struct cb_node *cb_lookup(struct cb_tree *, const uint8_t *k, size_t klen);
43struct cb_node *cb_insert(struct cb_tree *, struct cb_node *, size_t klen);

Callers 1

oidtree_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected