Searched refs:person (Results 1 – 9 of 9) sorted by relevance
/nanopb-2.7.6/tests/basic_buffer/ |
D | decode_buffer.c | 19 Person person = Person_init_zero; in print_person() local 21 if (!pb_decode(stream, Person_fields, &person)) in print_person() 26 printf("name: \"%s\"\n", person.name); in print_person() 27 printf("id: %ld\n", (long)person.id); in print_person() 29 if (person.has_email) in print_person() 30 printf("email: \"%s\"\n", person.email); in print_person() 32 for (i = 0; i < person.phone_count; i++) in print_person() 34 Person_PhoneNumber *phone = &person.phone[i]; in print_person()
|
D | SConscript | 5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_com… 6 dec = env.Program(["decode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_com… 10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person")
|
D | encode_buffer.c | 17 Person person = {"Test Person 99", 99, true, "test@person.com", in main() local 26 if (pb_encode(&stream, Person_fields, &person)) in main()
|
/nanopb-2.7.6/tests/basic_stream/ |
D | decode_stream.c | 15 Person person = Person_init_zero; in print_person() local 17 if (!pb_decode(stream, Person_fields, &person)) in print_person() 22 printf("name: \"%s\"\n", person.name); in print_person() 23 printf("id: %ld\n", (long)person.id); in print_person() 25 if (person.has_email) in print_person() 26 printf("email: \"%s\"\n", person.email); in print_person() 28 for (i = 0; i < person.phone_count; i++) in print_person() 30 Person_PhoneNumber *phone = &person.phone[i]; in print_person()
|
D | SConscript | 5 enc = env.Program(["encode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_com… 6 dec = env.Program(["decode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_com… 10 env.Decode(["encode_stream.output", "$COMMON/person.proto"], MESSAGE = "Person")
|
D | encode_stream.c | 19 Person person = {"Test Person 99", 99, true, "test@person.com", in main() local 31 if (pb_encode(&stream, Person_fields, &person)) in main()
|
/nanopb-2.7.6/tests/extra_fields/ |
D | person_with_extra_field.expected | 3 email: "test@person.com"
|
/nanopb-2.7.6/tests/common/ |
D | SConscript | 9 env.NanopbProto("person")
|
/nanopb-2.7.6/docs/ |
D | index.md | 39 - person.proto (just an example) 40 - person.pb.c (autogenerated, contains message descriptors) 41 - person.pb.h (autogenerated, contains type declarations and macros)
|