MCPcopy Create free account
hub / github.com/ElementsProject/lightning / ptrint2node

Function ptrint2node

common/gossmap.c:242–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static struct gossmap_node *ptrint2node(const ptrint_t *pidx)
243{
244 return map->node_arr + ptr2int(pidx) - 2;
245}
246
247static ptrint_t *node2ptrint(const struct gossmap_node *node)
248{

Callers 3

nodeidx_idFunction · 0.85
gossmap_find_nodeFunction · 0.85
gossmap_random_nodeFunction · 0.85

Calls 1

ptr2intFunction · 0.85

Tested by

no test coverage detected