Home
last modified time | relevance | path

Searched refs:pb_istream_t (Results 1 – 25 of 74) sorted by relevance

123

/nanopb-3.4.0/
Dpb_decode.h37 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…
128 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
142 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
145 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
150 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
160 bool pb_decode_bool(pb_istream_t *stream, bool *dest);
[all …]
Dpb_decode.c24 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-3.4.0/spm_headers/nanopb/
Dpb_decode.h37 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…
128 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen);
133 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
142 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
145 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
150 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
157 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
160 bool pb_decode_bool(pb_istream_t *stream, bool *dest);
[all …]
/nanopb-3.4.0/tests/msgid/
Ddecode_msgid.c10 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-3.4.0/examples/network_server/
Dcommon.c17 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()
Dcommon.h7 pb_istream_t pb_istream_from_socket(int fd);
/nanopb-3.4.0/tests/decode_unittests/
Ddecode_unittests.c13 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-3.4.0/tests/callbacks/
Ddecode_callbacks.c10 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-3.4.0/examples/using_union_messages/
Ddecode.c18 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-3.4.0/tests/alltypes_proto3_callback/
Ddecode_alltypes_callback.c18 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-3.4.0/tests/basic_stream/
Ddecode_stream.c12 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-3.4.0/tests/regression/issue_259/
Dcallback_pointer.c13 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-3.4.0/tests/oneof_callback/
Ddecode_oneof.c16 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-3.4.0/tests/missing_fields/
Dmissing_fields.c30 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-3.4.0/tests/regression/GHSA-gcx3-7m76-287p/
Dtest.c8 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-3.4.0/tests/alltypes_callback/
Ddecode_alltypes_callback.c18 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-3.4.0/tests/basic_buffer/
Ddecode_buffer.c16 bool print_person(pb_istream_t *stream) in print_person()
64 pb_istream_t stream; in main()
/nanopb-3.4.0/tests/raw_decode/
Draw_decode.c17 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-3.4.0/tests/regression/issue_544/
Dsubmsg_callback.c6 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-3.4.0/tests/regression/issue_249/
Dtest.c20 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-3.4.0/tests/regression/issue_647/
Drepro.c11 pb_istream_t stream = pb_istream_from_buffer(data, sizeof(data)); in main()
/nanopb-3.4.0/tests/fuzztest/
Dflakystream.h10 pb_istream_t stream;
/nanopb-3.4.0/tests/mem_release/
Dmem_release.c71 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-3.4.0/tests/anonymous_oneof/
Ddecode_oneof.c12 int test_oneof_1(pb_istream_t *stream, int option) in test_oneof_1()
78 pb_istream_t stream; in main()
/nanopb-3.4.0/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()
66 pb_istream_t instream = pb_istream_from_buffer(&serialized.front(), outstream.bytes_written); in main()

123