Home
last modified time | relevance | path

Searched refs:MessageHeader (Results 1 – 25 of 28) sorted by relevance

12

/external/protobuf/ruby/ext/google/protobuf_c/
Dmessage.c38 return ((uint8_t *)msg) + sizeof(MessageHeader); in Message_data()
42 MessageHeader* self = (MessageHeader *)_self; in Message_mark()
47 stringsink* unknown = ((MessageHeader *)self)->unknown_fields; in Message_free()
63 MessageHeader* msg = (MessageHeader*)ALLOC_N( in Message_alloc()
64 uint8_t, sizeof(MessageHeader) + desc->layout->size); in Message_alloc()
82 static const upb_fielddef* which_oneof_field(MessageHeader* self, const upb_oneofdef* o) { in which_oneof_field()
153 static int extract_method_call(VALUE method_name, MessageHeader* self, in extract_method_call()
285 MessageHeader* self; in Message_method_missing()
289 TypedData_Get_Struct(_self, MessageHeader, &Message_type, self); in Message_method_missing()
370 MessageHeader* self; in Message_respond_to_missing()
[all …]
Dencode_decode.c169 MessageHeader* msg = closure; in startseq_handler()
224 MessageHeader* msg = closure; in str_handler()
238 MessageHeader* msg = closure; in bytes_handler()
275 MessageHeader* submsg; in appendsubmsg_handler()
280 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in appendsubmsg_handler()
286 MessageHeader* msg = closure; in submsg_handler()
292 MessageHeader* submsg; in submsg_handler()
302 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in submsg_handler()
369 MessageHeader* msg = closure; in startmapentry_handler()
458 MessageHeader* msg = closure; in DEFINE_ONEOF_HANDLER()
[all …]
Dprotobuf.h48 struct MessageHeader;
62 typedef struct MessageHeader MessageHeader; typedef
551 struct MessageHeader { struct
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DRouterTest.java70 MessageHeader header = new MessageHeader( in testSendingToRouterWithResponse()
71 requestMessageType, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0); in testSendingToRouterWithResponse()
79 MessageHeader receivedHeader = in testSendingToRouterWithResponse()
89 MessageHeader responseHeader = new MessageHeader(responseMessageType, in testSendingToRouterWithResponse()
90 MessageHeader.MESSAGE_IS_RESPONSE_FLAG, receivedHeader.getRequestId()); in testSendingToRouterWithResponse()
100 Assert.assertEquals(MessageHeader.MESSAGE_IS_RESPONSE_FLAG, in testSendingToRouterWithResponse()
114 MessageHeader header = new MessageHeader( in sendMessageToRouter()
115 requestMessageType, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, requestId); in sendMessageToRouter()
142 MessageHeader responseHeader = new MessageHeader( in sendResponseFromRouter()
143 responseMessageType, MessageHeader.MESSAGE_IS_RESPONSE_FLAG, requestId); in sendResponseFromRouter()
DMessageHeaderTest.java33 ServiceMessage message = p.serializeWithHeader(null, new MessageHeader(type)); in testSimpleMessageHeader()
35 MessageHeader header = message.getHeader(); in testSimpleMessageHeader()
60 null, new MessageHeader(type, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0)); in testMessageWithRequestIdHeader()
63 MessageHeader header = message.getHeader(); in testMessageWithRequestIdHeader()
64 Assert.assertTrue(header.validateHeader(type, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG)); in testMessageWithRequestIdHeader()
66 Assert.assertEquals(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, header.getFlags()); in testMessageWithRequestIdHeader()
DValidationTest.java158 MessageHeader header = message.asServiceMessage().getHeader(); in accept()
159 if (header.hasFlag(MessageHeader.MESSAGE_IS_RESPONSE_FLAG)) { in accept()
/external/protobuf/php/ext/google/protobuf/
Dmessage.c91 PHP_PROTO_OBJECT_FREE_START(MessageHeader, message)
99 PHP_PROTO_OBJECT_DTOR_START(MessageHeader, message)
103 PHP_PROTO_OBJECT_CREATE_START(MessageHeader, message)
110 PHP_PROTO_OBJECT_CREATE_END(MessageHeader, message)
114 MessageHeader, message)
126 MessageHeader* self = UNBOX(MessageHeader, object); in message_set_property_internal()
163 MessageHeader* self = UNBOX(MessageHeader, object);
185 MessageHeader* self = UNBOX(MessageHeader, object);
248 void* message_data(MessageHeader* msg) {
253 MessageHeader* intern PHP_PROTO_TSRMLS_DC) {
[all …]
Dencode_decode.c218 MessageHeader* msg = closure; in startseq_handler()
283 MessageHeader* msg = (MessageHeader*)closure; \
370 MessageHeader* msg = (MessageHeader*)frame->closure; in str_end_handler()
398 MessageHeader* submsg; in appendsubmsg_handler()
405 submsg = UNBOX(MessageHeader, val); in appendsubmsg_handler()
409 submsg = (MessageHeader*)((char*)obj - XtOffsetOf(MessageHeader, std)); in appendsubmsg_handler()
418 MessageHeader* msg = closure; in submsg_handler()
425 MessageHeader* submsg; in submsg_handler()
432 MessageHeader* intern = UNBOX(MessageHeader, &val); in submsg_handler()
440 MessageHeader* intern = UNBOX_HASHTABLE_VALUE(MessageHeader, obj); in submsg_handler()
[all …]
Dstorage.c834 void layout_set(MessageLayout* layout, MessageHeader* header, in layout_set()
960 MessageHeader* submsg = in native_slot_merge()
961 UNBOX(MessageHeader, in native_slot_merge()
966 MessageHeader* sub_from = in native_slot_merge()
967 UNBOX(MessageHeader, in native_slot_merge()
969 MessageHeader* sub_to = in native_slot_merge()
970 UNBOX(MessageHeader, in native_slot_merge()
1007 MessageHeader* sub_from = UNBOX_HASHTABLE_VALUE( in native_slot_merge_by_array()
1008 MessageHeader, DEREF(from_memory, PHP_PROTO_HASHTABLE_VALUE)); in native_slot_merge_by_array()
1009 MessageHeader* sub_to = UNBOX_HASHTABLE_VALUE( in native_slot_merge_by_array()
[all …]
Dprotobuf.h605 struct MessageHeader;
650 typedef struct MessageHeader MessageHeader; typedef
853 void* message_data(MessageHeader* msg);
855 MessageHeader* msg PHP_PROTO_TSRMLS_DC);
933 PHP_PROTO_WRAP_OBJECT_START(MessageHeader)
944 void layout_set(MessageLayout* layout, MessageHeader* header,
946 void layout_merge(MessageLayout* layout, MessageHeader* from,
947 MessageHeader* to TSRMLS_DC);
977 MessageHeader* msg);
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DServiceMessage.java16 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()
DMessageHeader.java12 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()
DInterfaceControlMessagesHelper.java55 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()
DRouterImpl.java171 assert messageWithHeader.getHeader().hasFlag(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG); in acceptWithResponder()
219 MessageHeader header = message.asServiceMessage().getHeader(); in handleIncomingMessage()
220 if (header.hasFlag(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG)) { in handleIncomingMessage()
228 } else if (header.hasFlag(MessageHeader.MESSAGE_IS_RESPONSE_FLAG)) { in handleIncomingMessage()
DStruct.java77 public ServiceMessage serializeWithHeader(Core core, MessageHeader header) { in serializeWithHeader()
/external/libchrome/mojo/core/
Duser_message_impl.cc43 struct MessageHeader { struct
68 static_assert(sizeof(MessageHeader) % 8 == 0, "Invalid MessageHeader size.");
94 size_t original_header_size = sizeof(MessageHeader); in CreateOrExtendSerializedEventMessage()
98 MessageHeader* original_header = nullptr; in CreateOrExtendSerializedEventMessage()
103 original_header = static_cast<MessageHeader*>(*out_header); in CreateOrExtendSerializedEventMessage()
146 auto* header = reinterpret_cast<MessageHeader*>(static_cast<uint8_t*>(data) + in CreateOrExtendSerializedEventMessage()
161 original_dispatcher_headers_size + sizeof(MessageHeader)); in CreateOrExtendSerializedEventMessage()
174 sizeof(MessageHeader) - in CreateOrExtendSerializedEventMessage()
378 if (payload_size < sizeof(MessageHeader)) in CreateFromChannelMessage()
381 auto* header = static_cast<MessageHeader*>(payload); in CreateFromChannelMessage()
[all …]
/external/libchrome/mojo/public/cpp/bindings/lib/
Dmessage_internal.h28 struct MessageHeader : internal::StructHeader { struct
39 static_assert(sizeof(MessageHeader) == 24, "Bad sizeof(MessageHeader)"); argument
41 struct MessageHeaderV1 : MessageHeader {
Dmessage_header_validator.cc18 bool IsValidMessageHeader(const internal::MessageHeader* header, in IsValidMessageHeader()
26 if (header->num_bytes == sizeof(internal::MessageHeader)) in IsValidMessageHeader()
Dmessage_internal.cc25 return sizeof(MessageHeader); in ComputeHeaderSize()
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/
Dinterface_definition.tmpl45 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
93 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();
281 new org.chromium.mojo.bindings.MessageHeader(
/external/libchrome/mojo/public/cpp/bindings/
Dmessage.h109 const internal::MessageHeader* header() const { in COMPONENT_EXPORT()
110 return reinterpret_cast<const internal::MessageHeader*>(data()); in COMPONENT_EXPORT()
112 internal::MessageHeader* header() { in COMPONENT_EXPORT()
113 return reinterpret_cast<internal::MessageHeader*>(mutable_data()); in COMPONENT_EXPORT()
/external/grpc-grpc/third_party/nanopb/tests/message_sizes/
Dmessages2.proto7 required MessageHeader header = 1;
Dmessages1.proto19 message MessageHeader { message
/external/nanopb-c/tests/message_sizes/
Dmessages2.proto7 required MessageHeader header = 1;
Dmessages1.proto19 message MessageHeader { message

12