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

Function recode

c/tests/message_test.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static void recode(pn_message_t *dst, pn_message_t *src) {
42 pn_rwbytes_t buf = {0};
43 int size = pn_message_encode2(src, &buf);
44 REQUIRE(size > 0);
45 pn_message_decode(dst, buf.start, size);
46 free(buf.start);
47}
48
49TEST_CASE("message_inferred") {
50 pn_message_t *src = pn_message();

Callers 1

message_test.cppFile · 0.85

Calls 2

pn_message_encode2Function · 0.85
pn_message_decodeFunction · 0.50

Tested by

no test coverage detected