/external/nanopb-c/tests/regression/issue_256/ |
D | submsg_array.c | 16 msg.submsg.rep_uint32_count = 3; in main() 17 msg.submsg.rep_uint32[0] = 0; in main() 18 msg.submsg.rep_uint32[1] = 1; in main() 19 msg.submsg.rep_uint32[2] = 2; in main() 29 TEST(msg2.submsg.rep_uint32_count == 3); in main() 30 TEST(msg2.submsg.rep_uint32[0] == 0); in main() 31 TEST(msg2.submsg.rep_uint32[1] == 1); in main() 32 TEST(msg2.submsg.rep_uint32[2] == 2); in main()
|
/external/nanopb-c/tests/callbacks/ |
D | decode_callbacks.c | 73 testmessage.submsg.stringvalue.funcs.decode = &print_string; in main() 74 testmessage.submsg.stringvalue.arg = "submsg {\n stringvalue: \"%s\"\n"; in main() 75 testmessage.submsg.int32value.funcs.decode = &print_int32; in main() 76 testmessage.submsg.int32value.arg = " int32value: %ld\n"; in main() 77 testmessage.submsg.fixed32value.funcs.decode = &print_fixed32; in main() 78 testmessage.submsg.fixed32value.arg = " fixed32value: %ld\n"; in main() 79 testmessage.submsg.fixed64value.funcs.decode = &print_fixed64; in main() 80 testmessage.submsg.fixed64value.arg = " fixed64value: %ld\n}\n"; in main()
|
D | encode_callbacks.c | 77 testmessage.submsg.stringvalue.funcs.encode = &encode_string; in main() 78 testmessage.submsg.int32value.funcs.encode = &encode_int32; in main() 79 testmessage.submsg.fixed32value.funcs.encode = &encode_fixed32; in main() 80 testmessage.submsg.fixed64value.funcs.encode = &encode_fixed64; in main()
|
/external/grpc-grpc/third_party/nanopb/tests/callbacks/ |
D | decode_callbacks.c | 73 testmessage.submsg.stringvalue.funcs.decode = &print_string; in main() 74 testmessage.submsg.stringvalue.arg = "submsg {\n stringvalue: \"%s\"\n"; in main() 75 testmessage.submsg.int32value.funcs.decode = &print_int32; in main() 76 testmessage.submsg.int32value.arg = " int32value: %ld\n"; in main() 77 testmessage.submsg.fixed32value.funcs.decode = &print_fixed32; in main() 78 testmessage.submsg.fixed32value.arg = " fixed32value: %ld\n"; in main() 79 testmessage.submsg.fixed64value.funcs.decode = &print_fixed64; in main() 80 testmessage.submsg.fixed64value.arg = " fixed64value: %ld\n}\n"; in main()
|
D | encode_callbacks.c | 77 testmessage.submsg.stringvalue.funcs.encode = &encode_string; in main() 78 testmessage.submsg.int32value.funcs.encode = &encode_int32; in main() 79 testmessage.submsg.fixed32value.funcs.encode = &encode_fixed32; in main() 80 testmessage.submsg.fixed64value.funcs.encode = &encode_fixed64; in main()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | decode.c | 311 upb_msg *submsg, const upb_msglayout *layout, in decode_tosubmsg() argument 317 ptr = decode_msg(d, ptr, submsg, subl); in decode_tosubmsg() 327 upb_msg *submsg, const upb_msglayout *subl, in decode_group() argument 333 ptr = decode_msg(d, ptr, submsg, subl); in decode_group() 342 upb_msg *submsg, const upb_msglayout *layout, in decode_togroup() argument 345 return decode_group(d, ptr, submsg, subl, field->number); in decode_togroup() 385 upb_msg *submsg = decode_newsubmsg(d, layout, field); in decode_toarray() local 387 submsg; in decode_toarray() 390 return decode_togroup(d, ptr, submsg, layout, field); in decode_toarray() 392 return decode_tosubmsg(d, ptr, submsg, layout, field, val.size); in decode_toarray() [all …]
|
D | encode.c | 217 void *submsg = *(void **)field_mem; in encode_scalar() local 219 if (submsg == NULL) { in encode_scalar() 224 encode_message(e, submsg, subm, &size); in encode_scalar() 231 void *submsg = *(void **)field_mem; in encode_scalar() local 233 if (submsg == NULL) { in encode_scalar() 237 encode_message(e, submsg, subm, &size); in encode_scalar()
|
/external/nanopb-c/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 72 SubMessage submsg = {""}; in read_submsg() local 75 if (!pb_decode(stream, SubMessage_fields, &submsg)) in read_submsg() 78 TEST(strcmp(submsg.substuff1, ref->substuff1) == 0); in read_submsg() 79 TEST(submsg.substuff2 == ref->substuff2); in read_submsg() 80 TEST(submsg.has_substuff3 == ref->has_substuff3); in read_submsg() 81 TEST(submsg.substuff3 == ref->substuff3); in read_submsg() 151 SubMessage submsg = {""}; in read_repeated_submsg() local 152 if (!pb_decode(stream, SubMessage_fields, &submsg)) in read_repeated_submsg() 155 TEST(strcmp(submsg.substuff1, (*expected)->substuff1) == 0); in read_repeated_submsg() 156 TEST(submsg.substuff2 == (*expected)->substuff2); in read_repeated_submsg() [all …]
|
/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 302 msg.submsg.data.funcs.encode = &fieldcallback; in main() 303 msg2.submsg.submsg.data.funcs.encode = &fieldcallback; in main() 311 msg.submsg.data.funcs.encode = &crazyfieldcallback; in main() 312 msg.submsg.data.arg = &state; in main() 313 msg2.submsg.submsg.data.funcs.encode = &crazyfieldcallback; in main() 314 msg2.submsg.submsg.data.arg = &state; in main()
|
/external/grpc-grpc/third_party/nanopb/tests/encode_unittests/ |
D | encode_unittests.c | 302 msg.submsg.data.funcs.encode = &fieldcallback; in main() 303 msg2.submsg.submsg.data.funcs.encode = &fieldcallback; in main() 311 msg.submsg.data.funcs.encode = &crazyfieldcallback; in main() 312 msg.submsg.data.arg = &state; in main() 313 msg2.submsg.submsg.data.funcs.encode = &crazyfieldcallback; in main() 314 msg2.submsg.submsg.data.arg = &state; in main()
|
/external/nanopb-c/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 72 SubMessage submsg = {""}; in read_submsg() local 75 if (!pb_decode(stream, SubMessage_fields, &submsg)) in read_submsg() 78 TEST(strcmp(submsg.substuff1, ref->substuff1) == 0); in read_submsg() 79 TEST(submsg.substuff2 == ref->substuff2); in read_submsg() 80 TEST(submsg.substuff3 == ref->substuff3); in read_submsg() 150 SubMessage submsg = {""}; in read_repeated_submsg() local 151 if (!pb_decode(stream, SubMessage_fields, &submsg)) in read_repeated_submsg() 154 TEST(strcmp(submsg.substuff1, (*expected)->substuff1) == 0); in read_repeated_submsg() 155 TEST(submsg.substuff2 == (*expected)->substuff2); in read_repeated_submsg() 156 TEST(submsg.substuff3 == (*expected)->substuff3); in read_repeated_submsg()
|
/external/protobuf/js/compatibility_tests/v3.0.0/ |
D | proto3_test.js | 144 var submsg = new proto.jspb.test.ForeignMessage(); 145 submsg.setC(16); 146 msg.setOptionalForeignMessage(submsg); 164 submsg = new proto.jspb.test.ForeignMessage(); 165 submsg.setC(1000); 166 msg.setRepeatedForeignMessageList([submsg]); 242 var submsg = new proto.jspb.test.ForeignMessage(); 243 msg.setOneofForeignMessage(submsg); 245 assertEquals(msg.getOneofForeignMessage(), submsg);
|
/external/protobuf/js/compatibility_tests/v3.1.0/ |
D | proto3_test.js | 144 var submsg = new proto.jspb.test.ForeignMessage(); 145 submsg.setC(16); 146 msg.setOptionalForeignMessage(submsg); 164 submsg = new proto.jspb.test.ForeignMessage(); 165 submsg.setC(1000); 166 msg.setRepeatedForeignMessageList([submsg]); 242 var submsg = new proto.jspb.test.ForeignMessage(); 243 msg.setOneofForeignMessage(submsg); 245 assertEquals(msg.getOneofForeignMessage(), submsg);
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/pb/ |
D | test_decoder.cc | 223 string submsg(uint32_t fn, const string& buf) { in submsg() function 591 run_decoder(submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, proto), &wrapped_text1); in assert_successful_parse() 602 run_decoder(submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, proto), NULL); in assert_does_not_parse_at_eof() 603 run_decoder(cat(submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, proto), in assert_does_not_parse_at_eof() 816 cat ( submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, in test_invalid() 823 submsg(12345, string(" "))), in test_invalid() 824 submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, string(" ")))); in test_invalid() 830 submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, string(" ")))); in test_invalid() 836 buf.assign(submsg(UPB_DESCRIPTOR_TYPE_MESSAGE, buf)); in test_invalid() 906 submsg(12345, string(" ")), in test_valid() [all …]
|
/external/nanopb-c/tests/common/ |
D | unittestproto.proto | 29 required IntegerArray submsg = 1; field 33 required CallbackArray submsg = 1; field 37 required CallbackContainer submsg = 1; field
|
/external/nanopb-c/tests/regression/issue_249/ |
D | test.c | 42 msg.submsg.foo.funcs.encode = &write_array; in main() 51 msg.submsg.foo.funcs.decode = &read_array; in main() 52 msg.submsg.foo.arg = ∑ in main()
|
/external/grpc-grpc/third_party/nanopb/tests/common/ |
D | unittestproto.proto | 29 required IntegerArray submsg = 1; field 33 required CallbackArray submsg = 1; field 37 required CallbackContainer submsg = 1; field
|
/external/protobuf/src/google/protobuf/ |
D | generated_message_table_driven_lite.h | 644 MessageLite* submsg = *submsg_holder; in MergePartialFromCodedStreamInlined() local 646 if (submsg == NULL) { in MergePartialFromCodedStreamInlined() 651 submsg = prototype->New(arena); in MergePartialFromCodedStreamInlined() 652 *submsg_holder = submsg; in MergePartialFromCodedStreamInlined() 656 !WireFormatLite::ReadGroup(field_number, input, submsg))) { in MergePartialFromCodedStreamInlined() 668 MessageLite* submsg = in MergePartialFromCodedStreamInlined() local 672 !WireFormatLite::ReadGroup(field_number, input, submsg))) { in MergePartialFromCodedStreamInlined() 681 MessageLite* submsg = *submsg_holder; in MergePartialFromCodedStreamInlined() local 683 if (submsg == NULL) { in MergePartialFromCodedStreamInlined() 691 submsg = prototype->New(arena); in MergePartialFromCodedStreamInlined() [all …]
|
/external/protobuf/js/ |
D | proto3_test.js | 179 var submsg = new proto.jspb.test.ForeignMessage(); 180 submsg.setC(16); 181 msg.setOptionalForeignMessage(submsg); 199 submsg = new proto.jspb.test.ForeignMessage(); 200 submsg.setC(1000); 201 msg.setRepeatedForeignMessageList([submsg]); 282 var submsg = new proto.jspb.test.ForeignMessage(); 283 msg.setOneofForeignMessage(submsg); 285 assertEquals(msg.getOneofForeignMessage(), submsg);
|
/external/protobuf/php/ext/google/protobuf/ |
D | encode_decode.c | 398 MessageHeader* submsg; in appendsubmsg_handler() local 405 submsg = UNBOX(MessageHeader, val); in appendsubmsg_handler() 409 submsg = (MessageHeader*)((char*)obj - XtOffsetOf(MessageHeader, std)); in appendsubmsg_handler() 411 custom_data_init(subklass, submsg PHP_PROTO_TSRMLS_CC); in appendsubmsg_handler() 413 return submsg; in appendsubmsg_handler() 425 MessageHeader* submsg; in submsg_handler() local 448 submsg = UNBOX(MessageHeader, submsg_php); in submsg_handler() 449 return submsg; in submsg_handler() 786 MessageHeader* submsg; in oneofsubmsg_handler() local 811 submsg = UNBOX(MessageHeader, submsg_php); in oneofsubmsg_handler() [all …]
|
/external/protobuf/js/compatibility_tests/v3.1.0/binary/ |
D | proto_test.js | 122 var submsg = new proto.jspb.test.ForeignMessage(); 123 submsg.setC(16); 124 msg.setOptionalForeignMessage(submsg); 146 submsg = new proto.jspb.test.ForeignMessage(); 147 submsg.setC(1000); 148 msg.setRepeatedForeignMessageList([submsg]); 539 var submsg = new proto.jspb.test.ExtendsWithMessage(); 540 submsg.setFoo(16); 542 proto.jspb.test.ExtendsWithMessage.optionalExtension, submsg); 577 submsg = new proto.jspb.test.ExtendsWithMessage(); [all …]
|
/external/protobuf/js/compatibility_tests/v3.0.0/binary/ |
D | proto_test.js | 122 var submsg = new proto.jspb.test.ForeignMessage(); 123 submsg.setC(16); 124 msg.setOptionalForeignMessage(submsg); 146 submsg = new proto.jspb.test.ForeignMessage(); 147 submsg.setC(1000); 148 msg.setRepeatedForeignMessageList([submsg]); 539 var submsg = new proto.jspb.test.ExtendsWithMessage(); 540 submsg.setFoo(16); 542 proto.jspb.test.ExtendsWithMessage.optionalExtension, submsg); 577 submsg = new proto.jspb.test.ExtendsWithMessage(); [all …]
|
/external/nanopb-c/tests/regression/issue_247/ |
D | padding.c | 16 msg.submsg.boolfield = false; in main() 17 msg.submsg.intfield = 0; in main()
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | encode_decode.c | 275 MessageHeader* submsg; in appendsubmsg_handler() local 280 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in appendsubmsg_handler() 281 return submsg; in appendsubmsg_handler() 292 MessageHeader* submsg; in submsg_handler() local 302 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in submsg_handler() 304 return submsg; in submsg_handler() 498 MessageHeader* submsg; in oneofsubmsg_handler() local 515 TypedData_Get_Struct(submsg_rb, MessageHeader, &Message_type, submsg); in oneofsubmsg_handler() 516 return submsg; in oneofsubmsg_handler() 992 static void putsubmsg(VALUE submsg, const upb_fielddef *f, upb_sink *sink, in putsubmsg() argument [all …]
|
/external/protobuf/js/binary/ |
D | proto_test.js | 126 var submsg = new proto.jspb.test.ForeignMessage(); 127 submsg.setC(16); 128 msg.setOptionalForeignMessage(submsg); 150 submsg = new proto.jspb.test.ForeignMessage(); 151 submsg.setC(1000); 152 msg.setRepeatedForeignMessageList([submsg]); 542 var submsg = new proto.jspb.test.ExtendsWithMessage(); 543 submsg.setFoo(16); 545 proto.jspb.test.ExtendsWithMessage.optionalExtension, submsg); 580 submsg = new proto.jspb.test.ExtendsWithMessage(); [all …]
|