/nanopb-2.7.6/ |
D | pb_encode.h | 38 bool (*callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 67 bool pb_encode(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct); 83 bool pb_encode_ex(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct, unsigne… 104 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize); 124 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 133 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_iter_t *field); 137 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value); 150 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); [all …]
|
D | pb_encode.c | 23 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 24 static bool checkreturn encode_array(pb_ostream_t *stream, pb_field_iter_t *field); 26 static bool checkreturn encode_basic_field(pb_ostream_t *stream, const pb_field_iter_t *field); 27 static bool checkreturn encode_callback_field(pb_ostream_t *stream, const pb_field_iter_t *field); 28 static bool checkreturn encode_field(pb_ostream_t *stream, pb_field_iter_t *field); 29 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_iter_t *field); 30 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten… 31 static bool checkreturn pb_encode_varint_32(pb_ostream_t *stream, uint32_t low, uint32_t high); 32 static bool checkreturn pb_enc_bool(pb_ostream_t *stream, const pb_field_iter_t *field); 33 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_iter_t *field); [all …]
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_encode.h | 38 bool (*callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 67 bool pb_encode(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct); 83 bool pb_encode_ex(pb_ostream_t *stream, const pb_msgdesc_t *fields, const void *src_struct, unsigne… 104 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize); 124 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 133 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_iter_t *field); 137 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value); 150 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); [all …]
|
/nanopb-2.7.6/tests/msgid/ |
D | encode_msgid.c | 14 bool write_prefix(pb_ostream_t *stream, int msgid) in write_prefix() 25 bool encode_MyMessage1(pb_ostream_t *stream) in encode_MyMessage1() 33 bool encode_MyMessage2(pb_ostream_t *stream) in encode_MyMessage2() 42 bool encode_MyMessage3(pb_ostream_t *stream) in encode_MyMessage3() 53 pb_ostream_t stream; in main()
|
/nanopb-2.7.6/tests/callbacks/ |
D | encode_callbacks.c | 9 bool encode_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_string() 19 bool encode_int32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_int32() 27 bool encode_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_fixed32() 37 bool encode_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_fixed64() 47 bool encode_repeatedstring(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_repeatedstring() 66 pb_ostream_t stream; in main()
|
/nanopb-2.7.6/tests/encode_unittests/ |
D | encode_unittests.c | 10 bool streamcallback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in streamcallback() 21 bool fieldcallback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in fieldcallback() 29 bool crazyfieldcallback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in crazyfieldcallback() 56 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); in main() 67 pb_ostream_t stream = {&streamcallback, 0, SIZE_MAX, 0}; in main() 77 pb_ostream_t s; in main() 90 pb_ostream_t s; in main() 112 pb_ostream_t s; in main() 135 pb_ostream_t s; in main() 144 pb_ostream_t s; in main() [all …]
|
/nanopb-2.7.6/examples/network_server/ |
D | common.c | 11 static bool write_callback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in write_callback() 33 pb_ostream_t pb_ostream_from_socket(int fd) in pb_ostream_from_socket() 35 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; in pb_ostream_from_socket()
|
D | common.h | 6 pb_ostream_t pb_ostream_from_socket(int fd);
|
D | client.c | 30 bool ListFilesResponse_callback(pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_iter_t… in ListFilesResponse_callback() 55 pb_ostream_t output = pb_ostream_from_socket(fd); in listdir()
|
/nanopb-2.7.6/tests/alltypes_proto3_callback/ |
D | encode_alltypes_callback.c | 13 static bool write_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_varint() 19 static bool write_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_svarint() 25 static bool write_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed32() 31 static bool write_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed64() 37 static bool write_double(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_double() 49 static bool write_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 55 static bool write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_submsg() 62 static bool write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_emptymsg() 69 static bool write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_varint() 83 static bool write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_svarint() [all …]
|
/nanopb-2.7.6/tests/basic_stream/ |
D | encode_stream.c | 10 bool streamcallback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in streamcallback() 26 pb_ostream_t stream = {&streamcallback, NULL, SIZE_MAX, 0}; in main()
|
/nanopb-2.7.6/tests/oneof_callback/ |
D | encode_oneof.c | 16 bool SubMsg3_callback(pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_t *field) in SubMsg3_callback() 35 bool encode_int32_array(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_int32_array() 49 bool encode_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_string() 63 pb_ostream_t stream; in main()
|
/nanopb-2.7.6/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 13 static bool write_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_varint() 19 static bool write_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_svarint() 25 static bool write_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed32() 31 static bool write_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_fixed64() 37 static bool write_double(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_double() 49 static bool write_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 55 static bool write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_submsg() 62 static bool write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_emptymsg() 69 static bool write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_varint() 83 static bool write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_svarint() [all …]
|
/nanopb-2.7.6/tests/cxx_callback_datatype/ |
D | cxx_callback_datatype.cpp | 10 bool TestMessage_submessages_callback(pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_… in TestMessage_submessages_callback() 36 bool TestMessage_callback(pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_t *field) in TestMessage_callback() 55 pb_ostream_t sizestream = {0}; in main() 58 pb_ostream_t outstream = pb_ostream_from_buffer(&serialized.front(), serialized.size()); in main()
|
/nanopb-2.7.6/tests/regression/issue_242/ |
D | zero_value.c | 14 pb_ostream_t ostream; in main() 36 pb_ostream_t ostream; in main()
|
/nanopb-2.7.6/tests/regression/issue_342/ |
D | test_extensions.c | 9 static bool write_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 22 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/nanopb-2.7.6/examples/using_union_messages/ |
D | encode.c | 18 bool encode_unionmessage(pb_ostream_t *stream, const pb_msgdesc_t *messagetype, void *message) in encode_unionmessage() 50 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/nanopb-2.7.6/tests/regression/issue_249/ |
D | test.c | 6 static bool write_array(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_array() 41 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()
|
/nanopb-2.7.6/tests/regression/issue_227/ |
D | unaligned_uint64.c | 7 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()
|
/nanopb-2.7.6/tests/cyclic_messages/ |
D | encode_cyclic_callback.c | 33 static bool encode_tree(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_tree() 61 static bool encode_dictionary(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in encode_dictionary() 126 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in main()
|
/nanopb-2.7.6/tests/regression/issue_547/ |
D | test.c | 10 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()
|
/nanopb-2.7.6/tests/float_double_conversion/ |
D | float_double_conversion.c | 48 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main() 58 pb_ostream_t ostream; in main()
|
/nanopb-2.7.6/tests/regression/issue_504/ |
D | test.c | 18 pb_ostream_t ostream; in main() 51 pb_ostream_t ostream; in main()
|
/nanopb-2.7.6/tests/basic_buffer/ |
D | encode_buffer.c | 14 pb_ostream_t stream; in main()
|
/nanopb-2.7.6/tests/regression/issue_247/ |
D | padding.c | 22 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()
|