MCPcopy Create free account
hub / github.com/apache/qpid-proton / pni_node_lindex

Function pni_node_lindex

c/src/core/codec.c:262–270  ·  view source on GitHub ↗

Return index in current list, array etc.*/

Source from the content-addressed store, hash-verified

260
261/* Return index in current list, array etc.*/
262static int pni_node_lindex(pn_data_t *data, pni_node_t *node)
263{
264 int count = 0;
265 while (node) {
266 node = pn_data_node(data, node->prev);
267 count++;
268 }
269 return count - 1;
270}
271
272int pni_inspect_enter(void *ctx, pn_data_t *data, pni_node_t *node)
273{

Callers 2

pni_inspect_enterFunction · 0.85
pni_inspect_exitFunction · 0.85

Calls 1

pn_data_nodeFunction · 0.85

Tested by

no test coverage detected