Home
last modified time | relevance | path

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

/external/nanopb-c/
Dpb_decode.h37 bool (*callback)(pb_istream_t *stream, uint8_t *buf, size_t count);
68 bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
80 bool pb_decode_noinit(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
86 bool pb_decode_delimited(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
106 pb_istream_t pb_istream_from_buffer(uint8_t *buf, size_t bufsize);
111 bool pb_read(pb_istream_t *stream, uint8_t *buf, size_t count);
120 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
123 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
127 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
131 bool pb_decode_svarint(pb_istream_t *stream, int64_t *dest);
[all …]
Dpb_decode.c34 typedef bool (*pb_decoder_t)(pb_istream_t *stream, const pb_field_t *field, void *dest) checkreturn;
36 static bool checkreturn buf_read(pb_istream_t *stream, uint8_t *buf, size_t count);
37 static bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
38 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, uint8_t *buf…
42 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel…
43 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi…
44 static bool checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_itera…
45 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, …
46 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_ty…
49 static bool checkreturn pb_dec_varint(pb_istream_t *stream, const pb_field_t *field, void *dest);
[all …]
Dpb.h271 typedef struct _pb_istream_t pb_istream_t; typedef
278 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void *arg);
284 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg);
316 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension,
DCHANGELOG.txt99 Remove "skip" mode from pb_istream_t callbacks. Example implementation had a bug. (issue 37)
/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c11 bool stream_callback(pb_istream_t *stream, uint8_t *buf, size_t count) in stream_callback()
22 bool callback_check(pb_istream_t *stream, const pb_field_t *field, void **arg) in callback_check()
47 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); in main()
61 pb_istream_t stream = {&stream_callback, NULL, 20}; in main()
74 pb_istream_t s; in main()
91 pb_istream_t s; in main()
101 pb_istream_t s; in main()
110 pb_istream_t s = S("\x01\xFF\xFF\x03"); in main()
123 pb_istream_t s; in main()
135 pb_istream_t s; in main()
[all …]
/external/nanopb-c/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_string(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_string()
70 static bool read_submsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_submsg()
81 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_emptymsg()
87 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_varint()
98 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_svarint()
109 static bool read_repeated_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_fixed32()
[all …]
/external/nanopb-c/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()
/external/nanopb-c/examples/using_union_messages/
Ddecode.c17 const pb_field_t* decode_unionmessage_type(pb_istream_t *stream) in decode_unionmessage_type()
45 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_field_t fields[], void *dest_struc… in decode_unionmessage_contents()
47 pb_istream_t substream; in decode_unionmessage_contents()
62 pb_istream_t stream = pb_istream_from_buffer(buffer, count); in main()
/external/nanopb-c/examples/network_server/
Dcommon.c17 static bool read_callback(pb_istream_t *stream, uint8_t *buf, size_t count) in read_callback()
36 pb_istream_t pb_istream_from_socket(int fd) in pb_istream_from_socket()
38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX}; in pb_istream_from_socket()
Dclient.c26 bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void **arg) in printfile_callback()
42 pb_istream_t input = pb_istream_from_socket(fd); in listdir()
Dcommon.h7 pb_istream_t pb_istream_from_socket(int fd);
Dserver.c52 pb_istream_t input = pb_istream_from_socket(connfd); in handle_connection()
/external/nanopb-c/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()
73 pb_istream_t stream = {&callback, NULL, SIZE_MAX}; in main()
/external/nanopb-c/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()
/external/nanopb-c/tests/basic_buffer/
Ddecode_buffer.c16 bool print_person(pb_istream_t *stream) in print_person()
64 pb_istream_t stream; in main()
/external/nanopb-c/docs/
Dsecurity.rst33 3. Contents of the *pb_istream_t* and *pb_ostream_t* structures (this does not
40 1. All data read from *pb_istream_t*.
49 1. Nanopb will never read more than *bytes_left* bytes from *pb_istream_t*.
75 3. If using stream input, a maximum size should be set in *pb_istream_t* to
Dreference.rst284 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg);
314 bool (*decode)(pb_istream_t *stream, pb_extension_t *extension,
556 pb_istream_t pb_istream_from_buffer(uint8_t *buf, size_t bufsize);
566 bool pb_read(pb_istream_t *stream, uint8_t *buf, size_t count);
579 bool pb_decode(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
600 bool pb_decode_noinit(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
616 bool pb_decode_delimited(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
639 bool pb_skip_varint(pb_istream_t *stream);
648 bool pb_skip_string(pb_istream_t *stream);
657 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, int *tag, bool *eof);
[all …]
Dconcepts.rst52 … is very lightweight, and consists of a structure (*pb_ostream_t* or *pb_istream_t*) which contain…
110 bool (*callback)(pb_istream_t *stream, uint8_t *buf, size_t count);
123 bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
142 pb_istream_t stdinstream = {&callback, stdin, SIZE_MAX};
214 bool (*decode)(pb_istream_t *stream, const pb_field_t *field, void **arg);
224 bool read_ints(pb_istream_t *stream, const pb_field_t *field, void **arg)
/external/nanopb-c/examples/using_double_on_avr/
Ddecode_double.c14 pb_istream_t stream = pb_istream_from_buffer(buffer, count); in main()
/external/nanopb-c/examples/simple/
Dsimple.c50 pb_istream_t stream = pb_istream_from_buffer(buffer, message_length); in main()
/external/nanopb-c/tests/extensions/
Ddecode_extensions.c20 pb_istream_t stream; in main()
/external/nanopb-c/tests/backwards_compatibility/
Ddecode_legacy.c23 bool check_alltypes(pb_istream_t *stream, int mode) in check_alltypes()
182 pb_istream_t stream; in main()
/external/nanopb-c/tests/alltypes_pointer/
Ddecode_alltypes_pointer.c15 bool check_alltypes(pb_istream_t *stream, int mode) in check_alltypes()
151 pb_istream_t stream; in main()
/external/nanopb-c/tests/alltypes/
Ddecode_alltypes.c20 bool check_alltypes(pb_istream_t *stream, int mode) in check_alltypes()
193 pb_istream_t stream; in main()