Home
last modified time | relevance | path

Searched refs:num_payload_bytes (Results 1 – 10 of 10) sorted by relevance

/external/libmojo/mojo/edk/system/
Dports_message.cc15 size_t num_payload_bytes, in NewUserMessage() argument
19 new PortsMessage(num_payload_bytes, num_ports, num_handles)); in NewUserMessage()
24 PortsMessage::PortsMessage(size_t num_payload_bytes, in PortsMessage() argument
27 : ports::Message(num_payload_bytes, num_ports) { in PortsMessage()
28 size_t size = num_header_bytes_ + num_ports_bytes_ + num_payload_bytes; in PortsMessage()
35 size_t num_payload_bytes, in PortsMessage() argument
39 num_payload_bytes, in PortsMessage()
52 CHECK_EQ(num_payload_bytes, 0u); in PortsMessage()
Dports_message.h23 static std::unique_ptr<PortsMessage> NewUserMessage(size_t num_payload_bytes,
51 PortsMessage(size_t num_payload_bytes, size_t num_ports, size_t num_handles);
56 size_t num_payload_bytes,
Dmessage_for_transit.h86 DCHECK_GE(message_->num_payload_bytes(), header_size); in num_bytes()
87 return message_->num_payload_bytes() - header_size; in num_bytes()
Dmessage_pipe_dispatcher.cc196 if (message.num_payload_bytes() < sizeof(MessageHeader)) { in ReadMessage()
203 if (header->header_size > message.num_payload_bytes()) { in ReadMessage()
210 static_cast<uint32_t>(message.num_payload_bytes()) - in ReadMessage()
299 if (msg->num_payload_bytes() < next_payload_index || in ReadMessage()
536 message_size = message.num_payload_bytes(); in OnPortStatusChanged()
Dnode_controller.cc81 size_t* num_payload_bytes, in ParsePortsMessage() argument
83 DCHECK(data && num_data_bytes && num_header_bytes && num_payload_bytes && in ParsePortsMessage()
91 num_payload_bytes, num_ports_bytes)) { in ParsePortsMessage()
1021 size_t num_data_bytes, num_header_bytes, num_payload_bytes, num_ports_bytes; in OnPortsMessage() local
1023 &num_header_bytes, &num_payload_bytes, in OnPortsMessage()
1032 num_payload_bytes, in OnPortsMessage()
1118 size_t num_data_bytes, num_header_bytes, num_payload_bytes, num_ports_bytes; in OnBroadcast() local
1120 &num_header_bytes, &num_payload_bytes, in OnBroadcast()
Ddata_pipe_producer_dispatcher.cc512 if (message->num_payload_bytes() < sizeof(DataPipeControlMessage)) { in UpdateSignalsStateNoLock()
Ddata_pipe_consumer_dispatcher.cc534 if (message->num_payload_bytes() < sizeof(DataPipeControlMessage)) { in UpdateSignalsStateNoLock()
/external/libmojo/mojo/edk/system/ports/
Dmessage.cc20 size_t* num_payload_bytes, in Parse() argument
63 *num_payload_bytes = num_bytes - *num_header_bytes - *num_ports_bytes; in Parse()
67 *num_payload_bytes = 0; in Parse()
74 Message::Message(size_t num_payload_bytes, size_t num_ports) in Message() argument
77 num_payload_bytes, num_ports * sizeof(PortName)) { in Message()
82 size_t num_payload_bytes, in Message() argument
87 num_payload_bytes_(num_payload_bytes) { in Message()
Dmessage.h35 size_t* num_payload_bytes,
48 size_t num_payload_bytes() const { return num_payload_bytes_; } in num_payload_bytes() function
64 Message(size_t num_payload_bytes, size_t num_ports);
69 size_t num_payload_bytes,
Dports_unittest.cc49 static ScopedMessage NewUserMessage(size_t num_payload_bytes, in NewUserMessage() argument
51 return ScopedMessage(new TestMessage(num_payload_bytes, num_ports)); in NewUserMessage()
54 TestMessage(size_t num_payload_bytes, size_t num_ports) in TestMessage() argument
55 : Message(num_payload_bytes, num_ports) { in TestMessage()
56 start_ = new char[num_header_bytes_ + num_ports_bytes_ + num_payload_bytes]; in TestMessage()
61 size_t num_payload_bytes, in TestMessage() argument
64 num_payload_bytes, in TestMessage()
66 start_ = new char[num_header_bytes + num_payload_bytes + num_ports_bytes]; in TestMessage()