Home
last modified time | relevance | path

Searched refs:pb_encode (Results 1 – 25 of 128) sorted by relevance

123456

/nanopb-2.7.6/tests/regression/issue_166/
Denum_encoded_size.c21 TEST(pb_encode(&s, SignedMsg_fields, &msg1)); in main()
28 TEST(pb_encode(&s, SignedMsg_fields, &msg1)); in main()
37 TEST(pb_encode(&s, UnsignedMsg_fields, &msg2)); in main()
DSConscript10 "$COMMON/pb_encode.o",
/nanopb-2.7.6/
DBUILD.bazel12 "pb_encode.c",
18 "pb_encode.h",
DCMakeLists.txt92 pb_encode.h
93 pb_encode.c
112 pb_encode.h
113 pb_encode.c
136 install(FILES pb.h pb_common.h pb_encode.h pb_decode.h
/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c275 TEST(WRITES(pb_encode(&s, IntegerArray_fields, &msg), "\x0A\x05\x01\x02\x03\x04\x05")) in main()
278 TEST(WRITES(pb_encode(&s, IntegerArray_fields, &msg), "")) in main()
281 TEST(!pb_encode(&s, IntegerArray_fields, &msg)) in main()
291 TEST(WRITES(pb_encode(&s, FloatArray_fields, &msg), in main()
295 TEST(WRITES(pb_encode(&s, FloatArray_fields, &msg), "")) in main()
298 TEST(!pb_encode(&s, FloatArray_fields, &msg)) in main()
309 TEST((msg.data_count = 10) && pb_encode(&s, FloatArray_fields, &msg)) in main()
312 TEST((msg.data_count = 11) && !pb_encode(&s, FloatArray_fields, &msg)) in main()
323 TEST(WRITES(pb_encode(&s, CallbackArray_fields, &msg), "\x08\x55")) in main()
332 TEST(WRITES(pb_encode(&s, IntegerContainer_fields, &msg), in main()
[all …]
/nanopb-2.7.6/tests/regression/issue_242/
DSConscript1 # Regression test for Issue 242: pb_encode does not encode tag for
10 "$COMMON/pb_encode.o",
Dzero_value.c24 TEST(pb_encode(&ostream, Extendable_fields, &source)); in main()
43 TEST(pb_encode(&ostream, PointerMessage_fields, &source)); in main()
/nanopb-2.7.6/tests/msgid/
Dencode_msgid.c30 && pb_encode(stream, MyMessage1_fields, &msg); in encode_MyMessage1()
39 && pb_encode(stream, MyMessage2_fields, &msg); in encode_MyMessage2()
47 && pb_encode(stream, MyMessage3_fields, &msg); in encode_MyMessage3()
/nanopb-2.7.6/tests/splint/
DSConscript11 env.Command('pb_encode.splint', '$NANOPB/pb_encode.c',
/nanopb-2.7.6/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
17 strict.Object("pb_encode.o", "$NANOPB/pb_encode.c")
41 malloc_strict.Object("pb_encode_with_malloc.o", "$NANOPB/pb_encode.c")
/nanopb-2.7.6/tests/any_type/
Dencode_any.c28 status = pb_encode(&stream, google_protobuf_Duration_fields, &duration); in main()
34 if (pb_encode(&stream, BaseMessage_fields, &msg)) in main()
/nanopb-2.7.6/tests/regression/issue_485/
DSConscript6 env.Match('pb_encode_c.matched', ["$NANOPB/pb_encode.c", 'uint8.expected'])
7 env.Match('pb_encode_h.matched', ["$NANOPB/pb_encode.h", 'uint8.expected'])
/nanopb-2.7.6/tests/inline/
Dinline_unittests.c30 TEST(pb_encode(&ostream, Message1_fields, &msg1)); in main()
51 TEST(pb_encode(&ostream, Message2_fields, &msg2)); in main()
62 TEST(pb_encode(&ostream, Message2_fields, &msg2_no_data)); in main()
/nanopb-2.7.6/tests/cxx_main_program/
DSConscript12 env.Command("pb_encode.cxx", "#../pb_encode.c", c)
21 enc = env.Program(["encode_alltypes.cxx", "alltypes.pb.cxx", "pb_encode.cxx", "pb_common.cxx"])
/nanopb-2.7.6/tests/regression/issue_227/
Dunaligned_uint64.c10 pb_encode(&stream, MainMessage_fields, &msg); in main()
/nanopb-2.7.6/tests/regression/issue_547/
Dtest.c14 if (pb_encode(&stream, MyMessage_fields, &msg)) in main()
/nanopb-2.7.6/tests/float_double_conversion/
Dfloat_double_conversion.c51 TEST(pb_encode(&stream, &DoubleMsg_msg, &msg)); in main()
66 TEST(pb_encode(&ostream, &FloatMsg_msg, &msg)); in main()
/nanopb-2.7.6/tests/regression/issue_504/
Dtest.c33 if (!pb_encode(&ostream, MyMessage_fields, &msg)) { in main()
62 if (!pb_encode(&ostream, MyMessage_fields, &msg)) { in main()
/nanopb-2.7.6/tests/basic_buffer/
Dencode_buffer.c26 if (pb_encode(&stream, Person_fields, &person)) in main()
/nanopb-2.7.6/tests/regression/issue_247/
Dpadding.c23 TEST(pb_encode(&stream, TestMessage_fields, &msg)); in main()
DSConscript10 "$COMMON/pb_encode.o",
/nanopb-2.7.6/tests/regression/issue_253/
Dshort_array.c18 TEST(pb_encode(&ostream, TestMessage_fields, &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.txt10 * pb_encode() to encode a message
27 simple.c simple.pb.c pb_encode.c pb_decode.c pb_common.c
/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