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

Function pn_data_dump

c/src/core/codec.c:1492–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490}
1491
1492void pn_data_dump(pn_data_t *data)
1493{
1494 printf("{current=%" PN_ZI ", parent=%" PN_ZI "}\n", (size_t) data->current, (size_t) data->parent);
1495 char buf[256];
1496 for (unsigned i = 0; i < data->size; i++)
1497 {
1498 pni_node_t *node = &data->nodes[i];
1499 pn_fixed_string_t str = pn_fixed_string(buf, sizeof(buf));
1500 pni_inspect_atom((pn_atom_t *) &node->atom, &str);
1501 pn_fixed_string_terminate(&str);
1502 printf("Node %u: prev=%" PN_ZU ", next=%" PN_ZU ", parent=%" PN_ZU ", down=%" PN_ZU
1503 ", children=%" PN_ZU ", type=%s (%s)\n",
1504 i + 1, (size_t) node->prev,
1505 (size_t) node->next,
1506 (size_t) node->parent,
1507 (size_t) node->down,
1508 (size_t) node->children,
1509 pn_type_name(node->atom.type), buf);
1510 }
1511}
1512
1513static pni_node_t *pni_data_add(pn_data_t *data)
1514{

Callers 1

dumpMethod · 0.85

Calls 4

pn_fixed_stringFunction · 0.85
pni_inspect_atomFunction · 0.85
pn_type_nameFunction · 0.85

Tested by

no test coverage detected