/nanopb-2.7.6/ |
D | pb_decode.h | 37 bool (*callback)(pb_istream_t *stream, pb_byte_t *buf, size_t count); 74 bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct); 102 bool pb_decode_ex(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int… 134 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen); 139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 148 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof); 151 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type); 156 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); 163 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 166 bool pb_decode_bool(pb_istream_t *stream, bool *dest); [all …]
|
D | pb_decode.c | 24 static bool checkreturn buf_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 25 static bool checkreturn pb_decode_varint32_eof(pb_istream_t *stream, uint32_t *dest, bool *eof); 26 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *b… 27 static bool checkreturn decode_basic_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field… 28 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel… 29 static bool checkreturn decode_pointer_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fie… 30 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi… 31 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_… 32 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, … 33 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_ty… [all …]
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb_decode.h | 37 bool (*callback)(pb_istream_t *stream, pb_byte_t *buf, size_t count); 74 bool pb_decode(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct); 102 bool pb_decode_ex(pb_istream_t *stream, const pb_msgdesc_t *fields, void *dest_struct, unsigned int… 134 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen); 139 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 148 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof); 151 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type); 156 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); 163 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); 166 bool pb_decode_bool(pb_istream_t *stream, bool *dest); [all …]
|
/nanopb-2.7.6/tests/msgid/ |
D | decode_msgid.c | 10 bool read_prefix(pb_istream_t *stream, int *msgid) in read_prefix() 23 bool handle_MyMessage1(pb_istream_t *stream) in handle_MyMessage1() 34 bool handle_MyMessage2(pb_istream_t *stream) in handle_MyMessage2() 46 bool handle_MyMessage3(pb_istream_t *stream) in handle_MyMessage3() 60 pb_istream_t stream; in main()
|
/nanopb-2.7.6/examples/network_server/ |
D | common.c | 17 static bool read_callback(pb_istream_t *stream, uint8_t *buf, size_t count) in read_callback() 39 pb_istream_t pb_istream_from_socket(int fd) in pb_istream_from_socket() 41 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX}; in pb_istream_from_socket()
|
D | common.h | 7 pb_istream_t pb_istream_from_socket(int fd);
|
/nanopb-2.7.6/tests/decode_unittests/ |
D | decode_unittests.c | 13 bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count) in stream_callback() 24 bool callback_check(pb_istream_t *stream, const pb_field_t *field, void **arg) in callback_check() 49 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); in main() 63 pb_istream_t stream = {&stream_callback, NULL, 20}; in main() 76 pb_istream_t s; in main() 95 pb_istream_t s; in main() 111 pb_istream_t s; in main() 121 pb_istream_t s; in main() 130 pb_istream_t s = S("\x01\x00"); in main() 148 pb_istream_t s; in main() [all …]
|
/nanopb-2.7.6/tests/callbacks/ |
D | decode_callbacks.c | 10 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_string() 28 bool print_int32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_int32() 38 bool print_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_fixed32() 48 bool print_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_fixed64() 62 pb_istream_t stream; in main()
|
/nanopb-2.7.6/examples/using_union_messages/ |
D | decode.c | 18 const pb_msgdesc_t* decode_unionmessage_type(pb_istream_t *stream) in decode_unionmessage_type() 44 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_msgdesc_t *messagetype, void *dest… in decode_unionmessage_contents() 46 pb_istream_t substream; in decode_unionmessage_contents() 61 pb_istream_t stream = pb_istream_from_buffer(buffer, count); in main()
|
/nanopb-2.7.6/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 18 static bool read_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_varint() 28 static bool read_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_svarint() 38 static bool read_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_fixed32() 48 static bool read_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_fixed64() 58 static bool read_double(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_double() 80 static bool read_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_string() 92 static bool read_submsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_submsg() 106 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_emptymsg() 112 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_varint() 123 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_svarint() [all …]
|
/nanopb-2.7.6/tests/basic_stream/ |
D | decode_stream.c | 12 bool print_person(pb_istream_t *stream) in print_person() 58 bool callback(pb_istream_t *stream, uint8_t *buf, size_t count) in callback() 76 pb_istream_t stream = {&callback, NULL, SIZE_MAX}; in main()
|
/nanopb-2.7.6/tests/regression/issue_259/ |
D | callback_pointer.c | 13 pb_istream_t stream = pb_istream_from_buffer(msgdata, sizeof(msgdata)); in main() 20 pb_istream_t stream = pb_istream_from_buffer(msgdata, sizeof(msgdata)); in main()
|
/nanopb-2.7.6/tests/oneof_callback/ |
D | decode_oneof.c | 16 bool SubMsg3_callback(pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_t *field) in SubMsg3_callback() 45 bool print_int32(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_int32() 55 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in print_string() 81 bool msg_callback(pb_istream_t *stream, const pb_field_t *field, void **arg) in msg_callback() 125 pb_istream_t stream; in main()
|
/nanopb-2.7.6/tests/missing_fields/ |
D | missing_fields.c | 30 pb_istream_t stream = pb_istream_from_buffer(buffer, size); in main() 42 pb_istream_t stream = pb_istream_from_buffer(buffer, size); in main()
|
/nanopb-2.7.6/tests/regression/GHSA-gcx3-7m76-287p/ |
D | test.c | 8 bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count) in stream_callback() 26 pb_istream_t stream = {&stream_callback, NULL, SIZE_MAX}; in main()
|
/nanopb-2.7.6/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 18 static bool read_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_varint() 28 static bool read_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_svarint() 38 static bool read_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_fixed32() 48 static bool read_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_fixed64() 58 static bool read_double(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_double() 80 static bool read_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_string() 92 static bool read_submsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_submsg() 107 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_emptymsg() 113 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_varint() 124 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_svarint() [all …]
|
/nanopb-2.7.6/tests/raw_decode/ |
D | raw_decode.c | 17 bool callback(pb_istream_t *stream, uint8_t *buf, size_t count) in callback() 62 bool raw_decode(pb_istream_t *stream, const char *indent) in raw_decode() 140 pb_istream_t substream; in raw_decode() 184 pb_istream_t stream = {&callback, NULL, SIZE_MAX}; in main()
|
/nanopb-2.7.6/tests/basic_buffer/ |
D | decode_buffer.c | 16 bool print_person(pb_istream_t *stream) in print_person() 64 pb_istream_t stream; in main()
|
/nanopb-2.7.6/tests/regression/issue_544/ |
D | submsg_callback.c | 6 bool msg_callback(pb_istream_t *stream, const pb_field_t *field, void **arg) in msg_callback() 45 pb_istream_t istream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_249/ |
D | test.c | 20 static bool read_array(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_array() 49 pb_istream_t stream = pb_istream_from_buffer(buf, msglen); in main()
|
/nanopb-2.7.6/tests/regression/issue_647/ |
D | repro.c | 11 pb_istream_t stream = pb_istream_from_buffer(data, sizeof(data)); in main()
|
/nanopb-2.7.6/tests/mem_release/ |
D | mem_release.c | 71 pb_istream_t stream; in test_TestMessage() 178 pb_istream_t stream = pb_istream_from_buffer(buffer, msgsize); in test_OneofMessage() 205 static bool dummy_decode_cb(pb_istream_t *stream, const pb_field_t *field, void **arg) in dummy_decode_cb() 218 pb_istream_t stream = pb_istream_from_buffer(buffer, msgsize); in test_Garbage() 224 pb_istream_t stream = pb_istream_from_buffer(buffer, msgsize); in test_Garbage() 230 pb_istream_t stream = pb_istream_from_buffer(buffer, msgsize); in test_Garbage()
|
/nanopb-2.7.6/tests/fuzztest/ |
D | flakystream.h | 10 pb_istream_t stream;
|
/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() 66 pb_istream_t instream = pb_istream_from_buffer(&serialized.front(), outstream.bytes_written); in main()
|
/nanopb-2.7.6/tests/oneof/ |
D | decode_oneof.c | 12 int test_oneof_1(pb_istream_t *stream, int option) in test_oneof_1() 56 int test_oneof_2(pb_istream_t *stream, int option) in test_oneof_2() 115 pb_istream_t stream; in main()
|