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

Method pn_msg

cpp/src/message.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88pn_message_t *message::pn_msg() const {
89 if (!pn_msg_) {
90 pn_msg_ = pni_message_with_extra(sizeof(struct message::impl));
91 // Construct impl in extra storage allocated with pn_msg_
92 new (pni_message_get_extra(pn_msg_)) struct message::impl(pn_msg_);
93 }
94 return pn_msg_;
95}
96
97struct message::impl& message::impl() const {
98 return *(struct message::impl*)pni_message_get_extra(pn_msg());

Callers 1

message.cppFile · 0.80

Calls 2

pni_message_with_extraFunction · 0.85
pni_message_get_extraFunction · 0.85

Tested by

no test coverage detected