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

Method command_body

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

Source from the content-addressed store, hash-verified

539}
540
541void *zmq::msg_t::command_body ()
542{
543 unsigned char *data = NULL;
544
545 if (this->is_ping () || this->is_pong ())
546 data =
547 static_cast<unsigned char *> (this->data ()) + ping_cmd_name_size;
548 // With inproc, command flag is not set for sub/cancel
549 else if (!(this->flags () & msg_t::command)
550 && (this->is_subscribe () || this->is_cancel ()))
551 data = static_cast<unsigned char *> (this->data ());
552 else if (this->is_subscribe ())
553 data = static_cast<unsigned char *> (this->data ()) + sub_cmd_name_size;
554 else if (this->is_cancel ())
555 data =
556 static_cast<unsigned char *> (this->data ()) + cancel_cmd_name_size;
557
558 return data;
559}
560
561void zmq::msg_t::add_refs (int refs_)
562{

Callers 1

xread_activatedMethod · 0.80

Calls 6

is_pingMethod · 0.95
is_pongMethod · 0.95
dataMethod · 0.95
flagsMethod · 0.95
is_subscribeMethod · 0.95
is_cancelMethod · 0.95

Tested by

no test coverage detected