Home
last modified time | relevance | path

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

123456

/nanopb-2.7.6/tests/decode_unittests/
Ddecode_unittests.c307 TEST((s = S(""), pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 0)) in main()
308 TEST((s = S("\x08\x01\x08\x02"), pb_decode(&s, IntegerArray_fields, &dest) in main()
311 … TEST(pb_decode(&s, IntegerArray_fields, &dest) && dest.data_count == 10 && dest.data[9] == 10) in main()
313 TEST(!pb_decode(&s, IntegerArray_fields, &dest)) in main()
321 TEST((s = S("\x0A\x00"), pb_decode(&s, IntegerArray_fields, &dest) in main()
323 TEST((s = S("\x0A\x01\x01"), pb_decode(&s, IntegerArray_fields, &dest) in main()
325 …TEST((s = S("\x0A\x0A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A"), pb_decode(&s, IntegerArray_fields… in main()
327 …TEST((s = S("\x0A\x0B\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B"), !pb_decode(&s, IntegerArray_f… in main()
330 TEST((s = S("\x0A\xFF"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
331 TEST((s = S("\x0A\x01"), !pb_decode(&s, IntegerArray_fields, &dest))) in main()
[all …]
/nanopb-2.7.6/
DBUILD.bazel11 "pb_decode.c",
17 "pb_decode.h",
DCMakeLists.txt94 pb_decode.h
95 pb_decode.c)
114 pb_decode.h
115 pb_decode.c)
136 install(FILES pb.h pb_common.h pb_encode.h pb_decode.h
/nanopb-2.7.6/tests/regression/issue_342/
DSConscript2 # Possible null-pointer dereference in pb_decode.c
8 '$COMMON/pb_decode.o', '$COMMON/pb_encode.o', '$COMMON/pb_common.o'])
/nanopb-2.7.6/tests/regression/issue_249/
DSConscript1 # Regression test for Issue 249: proto3 mode pb_decode() corrupts callback fields
8 "$COMMON/pb_decode.o",
/nanopb-2.7.6/tests/regression/issue_259/
Dcallback_pointer.c15 TEST(pb_decode(&stream, MainMessage_fields, &msg)); in main()
22 TEST(pb_decode(&stream, MainMessage_fields, &msg)); in main()
/nanopb-2.7.6/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
16 strict.Object("pb_decode.o", "$NANOPB/pb_decode.c")
21 # Binaries of pb_decode etc. with malloc support
40 malloc_strict.Object("pb_decode_with_malloc.o", "$NANOPB/pb_decode.c")
/nanopb-2.7.6/tests/msgid/
Ddecode_msgid.c27 if (!pb_decode(stream, MyMessage1_fields, &msg)) in handle_MyMessage1()
38 if (!pb_decode(stream, MyMessage2_fields, &msg)) in handle_MyMessage2()
50 if (!pb_decode(stream, MyMessage3_fields, &msg)) in handle_MyMessage3()
/nanopb-2.7.6/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()
/nanopb-2.7.6/tests/fixed_count/
Dfixed_count_unittests.c32 TEST(pb_decode(&istream, Message1_fields, &msg_b)); in main()
46 TEST(pb_decode(&stream, Message1_fields, &msg)); in main()
50 TEST(!pb_decode(&stream, Message1_fields, &msg)); in main()
54 TEST(!pb_decode(&stream, Message1_fields, &msg)); in main()
81 TEST(pb_decode(&istream, Message2_fields, &msg_b)); in main()
131 TEST(pb_decode(&istream, Message3_fields, &msg_b)); in main()
/nanopb-2.7.6/tests/splint/
DSConscript8 env.Command('pb_decode.splint', '$NANOPB/pb_decode.c',
/nanopb-2.7.6/tests/any_type/
Ddecode_any.c23 if (!pb_decode(&stream, BaseMessage_fields, &msg)) in main()
37 status = pb_decode(&stream, google_protobuf_Duration_fields, &duration); in main()
/nanopb-2.7.6/spm-test/objc/
Dobjc-header.m3 #include "pb_decode.h"
Dobjc-qualified.m3 #include "nanopb/pb_decode.h"
/nanopb-2.7.6/tests/regression/issue_544/
Dsubmsg_callback.c12 if (!pb_decode(stream, SubMessage_fields, submsg)) in msg_callback()
49 if (!pb_decode(&istream, MyMessage_fields, &msg)) in main()
/nanopb-2.7.6/tests/regression/issue_485/
DSConscript4 env.Match('pb_decode_c.matched', ["$NANOPB/pb_decode.c", 'uint8.expected'])
5 env.Match('pb_decode_h.matched', ["$NANOPB/pb_decode.h", 'uint8.expected'])
/nanopb-2.7.6/tests/inline/
Dinline_unittests.c33 TEST(pb_decode(&istream, Message1_fields, &msg1_deserialized)); in main()
54 TEST(pb_decode(&istream, Message2_fields, &msg2_deserialized)); in main()
64 TEST(pb_decode(&istream, Message2_fields, &msg2_deserialized)); in main()
/nanopb-2.7.6/tests/cxx_main_program/
DSConscript13 env.Command("pb_decode.cxx", "#../pb_decode.c", c)
22 dec = env.Program(["decode_alltypes.cxx", "alltypes.pb.cxx", "pb_decode.cxx", "pb_common.cxx"])
/nanopb-2.7.6/tests/regression/issue_647/
Drepro.c12 TEST(!pb_decode(&stream, Repro_fields, &repro)); in main()
/nanopb-2.7.6/tests/regression/issue_617/
Dtest_oneof.c17 TEST(pb_decode(&stream, TestMessage_fields, &msg)); in main()
/nanopb-2.7.6/tests/float_double_conversion/
Dfloat_double_conversion.c61 TEST(pb_decode(&stream, &FloatMsg_msg, &msg)); in main()
75 TEST(pb_decode(&stream, &DoubleMsg_msg, &msg)); in main()
/nanopb-2.7.6/tests/stackusage/
DSConscript6 test = env.Program(["stackusage.c", "stackusage.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.o"…
/nanopb-2.7.6/examples/simple/
DREADME.txt12 * pb_decode() to decode a message
27 simple.c simple.pb.c pb_encode.c pb_decode.c pb_common.c
/nanopb-2.7.6/tests/regression/issue_322/
DSConscript10 "$COMMON/pb_decode.o",
/nanopb-2.7.6/tests/sort_by_tag/
DSConscript6 test = env.Program(["sort_by_tag.c", "sort_by_tag.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.…

123456