/external/protobuf/ruby/ext/google/protobuf_c/ |
D | message.c | 38 return ((uint8_t *)msg) + sizeof(MessageHeader); in Message_data() 42 MessageHeader* self = (MessageHeader *)_self; in Message_mark() 58 MessageHeader* msg = (MessageHeader*)ALLOC_N( in Message_alloc() 59 uint8_t, sizeof(MessageHeader) + desc->layout->size); in Message_alloc() 75 static VALUE which_oneof_field(MessageHeader* self, const upb_oneofdef* o) { in which_oneof_field() 127 MessageHeader* self; in Message_method_missing() 135 TypedData_Get_Struct(_self, MessageHeader, &Message_type, self); in Message_method_missing() 182 MessageHeader* self; in Message_initialize_kwarg() 186 TypedData_Get_Struct(_self, MessageHeader, &Message_type, self); in Message_initialize_kwarg() 264 MessageHeader* self; in Message_dup() [all …]
|
D | encode_decode.c | 109 MessageHeader* msg = closure; in startseq_handler() 157 MessageHeader* msg = closure; in str_handler() 169 MessageHeader* msg = closure; in bytes_handler() 192 MessageHeader* submsg; in appendsubmsg_handler() 197 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in appendsubmsg_handler() 203 MessageHeader* msg = closure; in submsg_handler() 209 MessageHeader* submsg; in submsg_handler() 217 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in submsg_handler() 248 MessageHeader* msg = closure; in startmapentry_handler() 340 MessageHeader* msg = closure; in DEFINE_ONEOF_HANDLER() [all …]
|
D | protobuf.h | 47 struct MessageHeader; 59 typedef struct MessageHeader MessageHeader; typedef 477 struct MessageHeader { struct
|
D | defs.c | 856 MessageHeader* msg; in FieldDescriptor_get() 857 TypedData_Get_Struct(msg_rb, MessageHeader, &Message_type, msg); in FieldDescriptor_get() 874 MessageHeader* msg; in FieldDescriptor_set() 875 TypedData_Get_Struct(msg_rb, MessageHeader, &Message_type, msg); in FieldDescriptor_set()
|
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/ |
D | RouterTest.java | 62 MessageHeader header = new MessageHeader(requestMessageType, in testSendingToRouterWithResponse() 63 MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0); in testSendingToRouterWithResponse() 72 MessageHeader receivedHeader = new Message( in testSendingToRouterWithResponse() 80 MessageHeader responseHeader = new MessageHeader(responseMessageType, in testSendingToRouterWithResponse() 81 MessageHeader.MESSAGE_IS_RESPONSE_FLAG, receivedHeader.getRequestId()); in testSendingToRouterWithResponse() 91 assertEquals(MessageHeader.MESSAGE_IS_RESPONSE_FLAG, in testSendingToRouterWithResponse() 105 MessageHeader header = new MessageHeader( in sendMessageToRouter() 106 requestMessageType, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, requestId); in sendMessageToRouter() 133 MessageHeader responseHeader = new MessageHeader( in sendResponseFromRouter() 134 responseMessageType, MessageHeader.MESSAGE_IS_RESPONSE_FLAG, requestId); in sendResponseFromRouter()
|
D | MessageHeaderTest.java | 29 ServiceMessage message = p.serializeWithHeader(null, new MessageHeader(type)); in testSimpleMessageHeader() 31 MessageHeader header = message.getHeader(); in testSimpleMessageHeader() 55 new MessageHeader(type, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0)); in testMessageWithRequestIdHeader() 58 MessageHeader header = message.getHeader(); in testMessageWithRequestIdHeader() 59 assertTrue(header.validateHeader(type, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG)); in testMessageWithRequestIdHeader() 61 assertEquals(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, header.getFlags()); in testMessageWithRequestIdHeader()
|
D | ValidationTest.java | 148 MessageHeader header = message.asServiceMessage().getHeader(); in accept() 149 if (header.hasFlag(MessageHeader.MESSAGE_IS_RESPONSE_FLAG)) { in accept()
|
/external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
D | ServiceMessage.java | 16 private final MessageHeader mHeader; 23 public ServiceMessage(Message baseMessage, MessageHeader header) { in ServiceMessage() 25 assert header.equals(new org.chromium.mojo.bindings.MessageHeader(baseMessage)); in ServiceMessage() 34 this(baseMessage, new org.chromium.mojo.bindings.MessageHeader(baseMessage)); in ServiceMessage() 49 public MessageHeader getHeader() { in getHeader()
|
D | MessageHeader.java | 12 public class MessageHeader { class 52 public MessageHeader(int type) { in MessageHeader() method in MessageHeader 62 public MessageHeader(int type, int flags, long requestId) { in MessageHeader() method in MessageHeader 74 MessageHeader(Message message) { in MessageHeader() method in MessageHeader 198 MessageHeader other = (MessageHeader) object; in equals()
|
D | InterfaceControlMessagesHelper.java | 55 core, new MessageHeader(InterfaceControlMessagesConstants.RUN_MESSAGE_ID, in sendRunMessage() 56 MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0)); in sendRunMessage() 66 new MessageHeader(InterfaceControlMessagesConstants.RUN_OR_CLOSE_PIPE_MESSAGE_ID)); in sendRunOrClosePipeMessage() 87 core, new MessageHeader(InterfaceControlMessagesConstants.RUN_MESSAGE_ID, in handleRun() 88 MessageHeader.MESSAGE_IS_RESPONSE_FLAG, in handleRun()
|
D | RouterImpl.java | 171 assert messageWithHeader.getHeader().hasFlag(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG); in acceptWithResponder() 222 MessageHeader header = message.asServiceMessage().getHeader(); in handleIncomingMessage() 223 if (header.hasFlag(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG)) { in handleIncomingMessage() 231 } else if (header.hasFlag(MessageHeader.MESSAGE_IS_RESPONSE_FLAG)) { in handleIncomingMessage()
|
D | Struct.java | 77 public ServiceMessage serializeWithHeader(Core core, MessageHeader header) { in serializeWithHeader()
|
/external/protobuf/php/ext/google/protobuf/ |
D | message.c | 40 return ((uint8_t *)msg) + sizeof(MessageHeader); in message_data() 47 MessageHeader* self = zend_object_store_get_object(object TSRMLS_CC); in message_set_property() 59 MessageHeader* self = in message_get_property() 60 (MessageHeader*)zend_object_store_get_object(object TSRMLS_CC); in message_get_property() 221 MessageHeader* msg = (MessageHeader*)ALLOC_N( in message_create() 222 uint8_t, sizeof(MessageHeader) + desc->layout->size); in message_create()
|
D | protobuf.h | 18 struct MessageHeader; 29 typedef struct MessageHeader MessageHeader; typedef 156 struct MessageHeader { struct
|
/external/libmojo/mojo/edk/system/ |
D | message_for_transit.cc | 16 static_assert(sizeof(MessageForTransit::MessageHeader) % 8 == 0, 41 size_t header_size = sizeof(MessageHeader) + in Create() 67 MessageHeader* header = in Create() 68 static_cast<MessageHeader*>(msg->mutable_payload_bytes()); in Create()
|
D | message_for_transit.h | 30 struct MessageHeader { struct 101 const MessageForTransit::MessageHeader* header() const { in header() 103 return static_cast<const MessageForTransit::MessageHeader*>( in header()
|
D | message_pipe_dispatcher.cc | 27 using MessageHeader = MessageForTransit::MessageHeader; typedef 87 if (message.num_payload_bytes() < sizeof(MessageHeader)) { in Match() 92 const MessageHeader* header = in Match() 93 static_cast<const MessageHeader*>(message.payload_bytes()); in Match() 325 const MessageHeader* header = in ReadMessage() 326 static_cast<const MessageHeader*>(msg->payload_bytes()); in ReadMessage() 337 size_t data_payload_index = sizeof(MessageHeader) + in ReadMessage()
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | message_internal.h | 28 struct MessageHeader : internal::StructHeader { struct 39 static_assert(sizeof(MessageHeader) == 24, "Bad sizeof(MessageHeader)"); argument 41 struct MessageHeaderV1 : MessageHeader {
|
D | message_builder.cc | 50 InitializeMessage(sizeof(MessageHeader) + payload_size); in MessageBuilder() 52 MessageHeader* header; in MessageBuilder()
|
D | message_header_validator.cc | 18 bool IsValidMessageHeader(const internal::MessageHeader* header, in IsValidMessageHeader() 26 if (header->num_bytes == sizeof(internal::MessageHeader)) in IsValidMessageHeader()
|
/external/libmojo/mojo/public/cpp/bindings/ |
D | message.h | 76 const internal::MessageHeader* header() const { in header() 77 return static_cast<const internal::MessageHeader*>(buffer_->data()); in header() 79 internal::MessageHeader* header() { in header() 80 return static_cast<internal::MessageHeader*>(buffer_->data()); in header()
|
/external/libmojo/mojo/public/tools/bindings/generators/java_templates/ |
D | interface_definition.tmpl | 45 org.chromium.mojo.bindings.MessageHeader.NO_FLAG 47 org.chromium.mojo.bindings.MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG 49 org.chromium.mojo.bindings.MessageHeader.MESSAGE_IS_RESPONSE_FLAG 88 org.chromium.mojo.bindings.MessageHeader header = messageWithHeader.getHeader(); 188 new org.chromium.mojo.bindings.MessageHeader( 197 … new org.chromium.mojo.bindings.MessageHeader({{method|method_ordinal_name}}))); 241 org.chromium.mojo.bindings.MessageHeader header = messageWithHeader.getHeader(); 286 new org.chromium.mojo.bindings.MessageHeader(
|
/external/nanopb-c/tests/message_sizes/ |
D | messages2.proto | 5 required MessageHeader header = 1;
|
D | messages1.proto | 17 message MessageHeader { message
|
/external/libmojo/mojo/public/java/ |
D | BUILD.gn | 45 "bindings/src/org/chromium/mojo/bindings/MessageHeader.java",
|