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

Function message_decode

c/tests/pn_test.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void message_decode(pn_message_t *m, pn_delivery_t *d, pn_rwbytes_t *buf) {
85 ssize_t size = pn_delivery_pending(d);
86 rwbytes_ensure(buf, size);
87 ssize_t result = pn_link_recv(pn_delivery_link(d), buf->start, size);
88 REQUIRE(size == result);
89 pn_message_clear(m);
90 if (pn_message_decode(m, buf->start, size)) FAIL(pn_message_error(m));
91}
92
93handler::handler()
94 : last_condition(pn_condition()), connection(), session(), link(), sender(),

Callers 2

CHECKED_IFFunction · 0.70

Calls 7

pn_delivery_pendingFunction · 0.85
rwbytes_ensureFunction · 0.85
pn_delivery_linkFunction · 0.85
pn_message_clearFunction · 0.85
pn_message_errorFunction · 0.85
pn_link_recvFunction · 0.50
pn_message_decodeFunction · 0.50

Tested by

no test coverage detected