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

Method decode

cpp/src/message.cpp:307–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void message::decode(const std::vector<char> &s) {
308 if (s.empty())
309 throw error("message decode: no data");
310 impl().clear();
311 check(pn_message_decode(pn_msg(), &s[0], s.size()));
312}
313
314bool message::durable() const { return pn_message_is_durable(pn_msg()); }
315void message::durable(bool b) { pn_message_set_durable(pn_msg(), b); }

Callers

nothing calls this directly

Calls 7

errorClass · 0.85
checkFunction · 0.70
implClass · 0.50
pn_message_decodeFunction · 0.50
emptyMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected