Home
last modified time | relevance | path

Searched refs:pb_ostream_t (Results 1 – 25 of 70) sorted by relevance

123

/nanopb-2.7.6/
Dpb_encode.h38 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 …]
Dpb_encode.c23 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/
Dpb_encode.h38 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/
Dencode_msgid.c14 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/
Dencode_callbacks.c9 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/
Dencode_unittests.c10 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/
Dcommon.c11 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()
Dcommon.h6 pb_ostream_t pb_ostream_from_socket(int fd);
Dclient.c30 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/
Dencode_alltypes_callback.c13 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/
Dencode_stream.c10 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/
Dencode_oneof.c16 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/
Dencode_alltypes_callback.c13 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/
Dcxx_callback_datatype.cpp10 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/
Dzero_value.c14 pb_ostream_t ostream; in main()
36 pb_ostream_t ostream; in main()
/nanopb-2.7.6/tests/regression/issue_342/
Dtest_extensions.c9 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/
Dencode.c18 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/
Dtest.c6 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/
Dunaligned_uint64.c7 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()
/nanopb-2.7.6/tests/cyclic_messages/
Dencode_cyclic_callback.c33 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/
Dtest.c10 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()
/nanopb-2.7.6/tests/float_double_conversion/
Dfloat_double_conversion.c48 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/
Dtest.c18 pb_ostream_t ostream; in main()
51 pb_ostream_t ostream; in main()
/nanopb-2.7.6/tests/basic_buffer/
Dencode_buffer.c14 pb_ostream_t stream; in main()
/nanopb-2.7.6/tests/regression/issue_247/
Dpadding.c22 pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf)); in main()

123