MCPcopy Create free account
hub / github.com/catboost/catboost / command_body_size

Method command_body_size

contrib/libs/zeromq/src/msg.cpp:526–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526size_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
541void *zmq::msg_t::command_body ()
542{

Callers 1

xread_activatedMethod · 0.80

Calls 6

is_pingMethod · 0.95
is_pongMethod · 0.95
sizeMethod · 0.95
flagsMethod · 0.95
is_subscribeMethod · 0.95
is_cancelMethod · 0.95

Tested by

no test coverage detected