| 362 | } |
| 363 | |
| 364 | void *zmq::msg_t::data () |
| 365 | { |
| 366 | // Check the validity of the message. |
| 367 | zmq_assert (check ()); |
| 368 | |
| 369 | switch (_u.base.type) { |
| 370 | case type_vsm: |
| 371 | return _u.vsm.data; |
| 372 | case type_lmsg: |
| 373 | return _u.lmsg.content->data; |
| 374 | case type_cmsg: |
| 375 | return _u.cmsg.data; |
| 376 | case type_zclmsg: |
| 377 | return _u.zclmsg.content->data; |
| 378 | default: |
| 379 | zmq_assert (false); |
| 380 | return NULL; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | size_t zmq::msg_t::size () const |
| 385 | { |
no test coverage detected