/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 200 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/ |
D | SConscript | 11 # 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/ |
D | SConscript | 12 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/ |
D | SConscript | 11 env.Command('pb_encode.splint', '$NANOPB/pb_encode.c',
|
/external/nanopb-c/examples/simple/ |
D | README.txt | 10 * pb_encode() to encode a message 27 simple.c simple.pb.c pb_encode.c pb_decode.c
|
D | Makefile | 11 CSRC += $(NANOPB_DIR)/pb_encode.c # The nanopb encoder
|
D | simple.c | 28 status = pb_encode(&stream, SimpleMessage_fields, &message); in main()
|
/external/nanopb-c/docs/ |
D | index.rst | 16 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/ |
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/using_double_on_avr/ |
D | encode_double.c | 20 pb_encode(&stream, AVRDoubleMessage_fields, &message); in main()
|
/external/nanopb-c/tests/basic_buffer/ |
D | encode_buffer.c | 26 if (pb_encode(&stream, Person_fields, &person)) in main()
|
D | SConscript | 5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o"])
|
/external/nanopb-c/tests/missing_fields/ |
D | SConscript | 6 test = env.Program(["missing_fields.c", "missing_fields.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_d…
|
D | missing_fields.c | 18 if (!pb_encode(&stream, MissingField_fields, &msg)) in main()
|
/external/nanopb-c/tests/basic_stream/ |
D | encode_stream.c | 31 if (pb_encode(&stream, Person_fields, &person)) in main()
|
D | SConscript | 5 enc = env.Program(["encode_stream.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o"])
|
/external/nanopb-c/tests/backwards_compatibility/ |
D | SConscript | 6 enc = env.Program(["encode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_encode.o"])
|
/external/nanopb-c/ |
D | Android.mk | 25 pb_encode.c
|
D | pb_encode.c | 336 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()
|
D | pb_encode.h | 67 bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
|
/external/nanopb-c/tests/callbacks/ |
D | SConscript | 6 enc = env.Program(["encode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_encode.o"])
|
/external/nanopb-c/tests/extensions/ |
D | encode_extensions.c | 38 if (pb_encode(&stream, AllTypes_fields, &alltypes)) in main()
|
D | SConscript | 11 …_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_encode.o"])
|
/external/nanopb-c/extra/ |
D | nanopb.mk | 8 NANOPB_CORE = $(NANOPB_DIR)/pb_encode.c $(NANOPB_DIR)/pb_decode.c
|
/external/nanopb-c/tests/alltypes_callback/ |
D | SConscript | 9 enc = env.Program(["encode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_encode.o"])
|