Home
last modified time | relevance | path

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

12

/external/nanopb-c/tests/encode_unittests/
Dencode_unittests.c200 TEST(WRITES(pb_encode(&s, IntegerArray_fields, &msg), "\x0A\x05\x01\x02\x03\x04\x05")) in main()
203 TEST(WRITES(pb_encode(&s, IntegerArray_fields, &msg), "")) in main()
206 TEST(!pb_encode(&s, IntegerArray_fields, &msg)) in main()
216 TEST(WRITES(pb_encode(&s, FloatArray_fields, &msg), in main()
220 TEST(WRITES(pb_encode(&s, FloatArray_fields, &msg), "")) in main()
223 TEST(!pb_encode(&s, FloatArray_fields, &msg)) in main()
234 TEST((msg.data_count = 10) && pb_encode(&s, FloatArray_fields, &msg)) in main()
237 TEST((msg.data_count = 11) && !pb_encode(&s, FloatArray_fields, &msg)) in main()
248 TEST(WRITES(pb_encode(&s, CallbackArray_fields, &msg), "\x08\x55")) in main()
257 TEST(WRITES(pb_encode(&s, IntegerContainer_fields, &msg), in main()
[all …]
/external/nanopb-c/tests/common/
DSConscript11 # Binaries of the pb_decode.c and pb_encode.c
16 strict.Object("pb_encode.o", "$NANOPB/pb_encode.c")
/external/nanopb-c/tests/cxx_main_program/
DSConscript12 env.Command("pb_encode.cxx", "#../pb_encode.c", c)
20 enc = env.Program(["encode_alltypes.cxx", "alltypes.pb.cxx", "pb_encode.cxx"])
/external/nanopb-c/tests/splint/
DSConscript11 env.Command('pb_encode.splint', '$NANOPB/pb_encode.c',
/external/nanopb-c/examples/simple/
DREADME.txt10 * pb_encode() to encode a message
27 simple.c simple.pb.c pb_encode.c pb_decode.c
DMakefile11 CSRC += $(NANOPB_DIR)/pb_encode.c # The nanopb encoder
Dsimple.c28 status = pb_encode(&stream, SimpleMessage_fields, &message); in main()
/external/nanopb-c/docs/
Dindex.rst16 Depending on whether you want to encode, decode, or both, you also need *pb_encode.h/c* or *pb_deco…
27 - pb_encode.h and pb_encode.c (needed for encoding messages)
86 pb_encode(&stream, Example_fields, &mymessage);
/external/nanopb-c/examples/network_server/
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/using_double_on_avr/
Dencode_double.c20 pb_encode(&stream, AVRDoubleMessage_fields, &message); in main()
/external/nanopb-c/tests/basic_buffer/
Dencode_buffer.c26 if (pb_encode(&stream, Person_fields, &person)) in main()
DSConscript5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o"])
/external/nanopb-c/tests/missing_fields/
DSConscript6 test = env.Program(["missing_fields.c", "missing_fields.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_d…
Dmissing_fields.c18 if (!pb_encode(&stream, MissingField_fields, &msg)) in main()
/external/nanopb-c/tests/basic_stream/
Dencode_stream.c31 if (pb_encode(&stream, Person_fields, &person)) in main()
DSConscript5 enc = env.Program(["encode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o"])
/external/nanopb-c/tests/backwards_compatibility/
DSConscript6 enc = env.Program(["encode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_encode.o"])
/external/nanopb-c/
DAndroid.mk25 pb_encode.c
Dpb_encode.c336 bool checkreturn pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct) in pb_encode() function
385 if (!pb_encode(&stream, fields, src_struct)) in pb_get_encoded_size()
512 if (!pb_encode(&substream, fields, src_struct)) in pb_encode_submessage()
541 status = pb_encode(&substream, fields, src_struct); in pb_encode_submessage()
Dpb_encode.h67 bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
/external/nanopb-c/tests/callbacks/
DSConscript6 enc = env.Program(["encode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_encode.o"])
/external/nanopb-c/tests/extensions/
Dencode_extensions.c38 if (pb_encode(&stream, AllTypes_fields, &alltypes)) in main()
DSConscript11 …_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_encode.o"])
/external/nanopb-c/extra/
Dnanopb.mk8 NANOPB_CORE = $(NANOPB_DIR)/pb_encode.c $(NANOPB_DIR)/pb_decode.c
/external/nanopb-c/tests/alltypes_callback/
DSConscript9 enc = env.Program(["encode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_encode.o"])

12