/external/nanopb-c/tests/decode_unittests/ |
D | decode_unittests.c | 206 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) in main() 207 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) in main() 210 … TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) in main() 212 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) in main() 220 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) in main() 222 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main() 224 …TEST((s = S("\x0A\x0A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A"), pb_decode(&s, IntegerArray_fields… in main() 226 …TEST((s = S("\x0A\x0B\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"), !pb_decode(&s, IntegerArray_f… in main() 229 TEST((s = S("\x0A\xFF"), !pb_decode(&s, IntegerArray_fields, &dest))) in main() 230 TEST((s = S("\x0A\x01"), !pb_decode(&s, IntegerArray_fields, &dest))) in main() [all …]
|
/external/nanopb-c/tests/common/ |
D | SConscript | 11 # Binaries of the pb_decode.c and pb_encode.c 15 strict.Object("pb_decode.o", "$NANOPB/pb_decode.c")
|
/external/nanopb-c/tests/cxx_main_program/ |
D | SConscript | 13 env.Command("pb_decode.cxx", "#../pb_decode.c", c) 21 dec = env.Program(["decode_alltypes.cxx", "alltypes.pb.cxx", "pb_decode.cxx"])
|
/external/nanopb-c/tests/splint/ |
D | SConscript | 8 env.Command('pb_decode.splint', '$NANOPB/pb_decode.c',
|
/external/nanopb-c/tests/missing_fields/ |
D | missing_fields.c | 32 if (!pb_decode(&stream, MissingField_fields, &msg)) in main() 44 if (pb_decode(&stream, AllFields_fields, &msg)) in main()
|
D | SConscript | 6 ….Program(["missing_fields.c", "missing_fields.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.o"])
|
/external/nanopb-c/examples/network_server/ |
D | client.c | 30 if (!pb_decode(stream, FileInfo_fields, &fileinfo)) in printfile_callback() 73 if (!pb_decode(&input, ListFilesResponse_fields, &response)) in listdir()
|
D | README.txt | 16 ../../pb_decode.c ../../pb_encode.c fileproto.pb.c common.c 18 ../../pb_decode.c ../../pb_encode.c fileproto.pb.c common.c
|
/external/nanopb-c/examples/simple/ |
D | README.txt | 12 * pb_decode() to decode a message 27 simple.c simple.pb.c pb_encode.c pb_decode.c
|
D | Makefile | 12 CSRC += $(NANOPB_DIR)/pb_decode.c # The nanopb decoder
|
D | simple.c | 53 status = pb_decode(&stream, SimpleMessage_fields, &message); in main()
|
/external/nanopb-c/tests/alltypes_pointer/ |
D | SConscript | 6 # We need our own pb_decode.o for the malloc support 19 strict.Object("pb_decode_with_malloc.o", "$NANOPB/pb_decode.c")
|
/external/nanopb-c/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 74 if (!pb_decode(stream, SubMessage_fields, &submsg)) in read_submsg() 84 return pb_decode(stream, EmptyMessage_fields, &emptymsg); in read_emptymsg() 148 if (!pb_decode(stream, SubMessage_fields, &decoded)) in read_repeated_submsg() 158 if (!pb_decode(stream, Limits_fields, &decoded)) in read_limits() 396 return pb_decode(stream, AllTypes_fields, &alltypes); in check_alltypes()
|
/external/nanopb-c/examples/using_double_on_avr/ |
D | decode_double.c | 17 pb_decode(&stream, AVRDoubleMessage_fields, &message); in main()
|
/external/nanopb-c/docs/ |
D | reference.rst | 295 When calling `pb_encode`_, *funcs.encode* is used, and similarly when calling `pb_decode`_, *funcs.… 352 if (!pb_decode(...)) 549 pb_decode.h 575 pb_decode section in pb_decode.h 579 bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct); 586 …y allowed between fields. If it happens anywhere else, pb_decode will return *false*. If pb_decode… 588 In addition to EOF, the pb_decode implementation supports terminating a message with a 0 byte. This… 594 On error return `pb_decode` will release the memory itself. 598 Same as `pb_decode`_, except does not apply the default values to fields. :: 602 (parameters are the same as for `pb_decode`_.) [all …]
|
/external/nanopb-c/tests/backwards_compatibility/ |
D | SConscript | 7 dec = env.Program(["decode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_decode.o"])
|
/external/nanopb-c/ |
D | Android.mk | 24 pb_decode.c \
|
/external/nanopb-c/tests/callbacks/ |
D | SConscript | 7 dec = env.Program(["decode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_decode.o"])
|
/external/nanopb-c/tests/basic_buffer/ |
D | SConscript | 6 dec = env.Program(["decode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o"])
|
D | decode_buffer.c | 21 if (!pb_decode(stream, Person_fields, &person)) in print_person()
|
/external/nanopb-c/tests/basic_stream/ |
D | SConscript | 6 dec = env.Program(["decode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o"])
|
D | decode_stream.c | 17 if (!pb_decode(stream, Person_fields, &person)) in print_person()
|
/external/nanopb-c/extra/ |
D | nanopb.mk | 8 NANOPB_CORE = $(NANOPB_DIR)/pb_encode.c $(NANOPB_DIR)/pb_decode.c
|
/external/nanopb-c/tests/extensions/ |
D | SConscript | 12 …_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_decode.o"])
|
D | decode_extensions.c | 45 if (!pb_decode(&stream, AllTypes_fields, &alltypes)) in main()
|