Home
last modified time | relevance | path

Searched refs:person (Results 1 – 9 of 9) sorted by relevance

/nanopb-2.7.6/tests/basic_buffer/
Ddecode_buffer.c19 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()
DSConscript5 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")
Dencode_buffer.c17 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/
Ddecode_stream.c15 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()
DSConscript5 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")
Dencode_stream.c19 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/
Dperson_with_extra_field.expected3 email: "test@person.com"
/nanopb-2.7.6/tests/common/
DSConscript9 env.NanopbProto("person")
/nanopb-2.7.6/docs/
Dindex.md39 - person.proto (just an example)
40 - person.pb.c (autogenerated, contains message descriptors)
41 - person.pb.h (autogenerated, contains type declarations and macros)