| 524 | } |
| 525 | |
| 526 | size_t zmq::msg_t::command_body_size () const |
| 527 | { |
| 528 | if (this->is_ping () || this->is_pong ()) |
| 529 | return this->size () - ping_cmd_name_size; |
| 530 | else if (!(this->flags () & msg_t::command) |
| 531 | && (this->is_subscribe () || this->is_cancel ())) |
| 532 | return this->size (); |
| 533 | else if (this->is_subscribe ()) |
| 534 | return this->size () - sub_cmd_name_size; |
| 535 | else if (this->is_cancel ()) |
| 536 | return this->size () - cancel_cmd_name_size; |
| 537 | |
| 538 | return 0; |
| 539 | } |
| 540 | |
| 541 | void *zmq::msg_t::command_body () |
| 542 | { |
no test coverage detected