| 86 | } |
| 87 | |
| 88 | pn_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 | |
| 97 | struct message::impl& message::impl() const { |
| 98 | return *(struct message::impl*)pni_message_get_extra(pn_msg()); |
no test coverage detected