Home
last modified time | relevance | path

Searched refs:pb_decode (Results 1 – 25 of 44) sorted by relevance

12

/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c206 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/
DSConscript11 # 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/
DSConscript13 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/
DSConscript8 env.Command('pb_decode.splint', '$NANOPB/pb_decode.c',
/external/nanopb-c/tests/missing_fields/
Dmissing_fields.c32 if (!pb_decode(&stream, MissingField_fields, &msg)) in main()
44 if (pb_decode(&stream, AllFields_fields, &msg)) in main()
DSConscript6 ….Program(["missing_fields.c", "missing_fields.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.o"])
/external/nanopb-c/examples/network_server/
Dclient.c30 if (!pb_decode(stream, FileInfo_fields, &fileinfo)) in printfile_callback()
73 if (!pb_decode(&input, ListFilesResponse_fields, &response)) in listdir()
DREADME.txt16 ../../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/
DREADME.txt12 * pb_decode() to decode a message
27 simple.c simple.pb.c pb_encode.c pb_decode.c
DMakefile12 CSRC += $(NANOPB_DIR)/pb_decode.c # The nanopb decoder
Dsimple.c53 status = pb_decode(&stream, SimpleMessage_fields, &message); in main()
/external/nanopb-c/tests/alltypes_pointer/
DSConscript6 # 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/
Ddecode_alltypes_callback.c74 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/
Ddecode_double.c17 pb_decode(&stream, AVRDoubleMessage_fields, &message); in main()
/external/nanopb-c/docs/
Dreference.rst295 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/
DSConscript7 dec = env.Program(["decode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_decode.o"])
/external/nanopb-c/
DAndroid.mk24 pb_decode.c \
/external/nanopb-c/tests/callbacks/
DSConscript7 dec = env.Program(["decode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_decode.o"])
/external/nanopb-c/tests/basic_buffer/
DSConscript6 dec = env.Program(["decode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o"])
Ddecode_buffer.c21 if (!pb_decode(stream, Person_fields, &person)) in print_person()
/external/nanopb-c/tests/basic_stream/
DSConscript6 dec = env.Program(["decode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o"])
Ddecode_stream.c17 if (!pb_decode(stream, Person_fields, &person)) in print_person()
/external/nanopb-c/extra/
Dnanopb.mk8 NANOPB_CORE = $(NANOPB_DIR)/pb_encode.c $(NANOPB_DIR)/pb_decode.c
/external/nanopb-c/tests/extensions/
DSConscript12 …_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_decode.o"])
Ddecode_extensions.c45 if (!pb_decode(&stream, AllTypes_fields, &alltypes)) in main()

12