Home
last modified time | relevance | path

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

1234

/external/nanopb-c/
Dpb_decode.h37 bool (*callback)(pb_istream_t *stream, pb_byte_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);
91 bool pb_decode_delimited_noinit(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
98 bool pb_decode_nullterminated(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct);
118 pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t bufsize);
123 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
132 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof);
135 bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type);
[all …]
Dpb_decode.c24 typedef bool (*pb_decoder_t)(pb_istream_t *stream, const pb_field_t *field, void *dest) checkreturn;
26 static bool checkreturn buf_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
27 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *b…
28 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel…
29 static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fi…
30 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…
37 static bool checkreturn pb_dec_varint(pb_istream_t *stream, const pb_field_t *field, void *dest);
38 static bool checkreturn pb_decode_varint32_eof(pb_istream_t *stream, uint32_t *dest, bool *eof);
[all …]
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.h37 bool (*callback)(pb_istream_t *stream, pb_byte_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(const pb_byte_t *buf, size_t bufsize);
111 bool pb_read(pb_istream_t *stream, pb_byte_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.c24 typedef bool (*pb_decoder_t)(pb_istream_t *stream, const pb_field_t *field, void *dest) checkreturn;
26 static bool checkreturn buf_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
27 static bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
28 static bool checkreturn read_raw_value(pb_istream_t *stream, pb_wire_type_t wire_type, pb_byte_t *b…
29 static bool checkreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_fiel…
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_…
33 static bool checkreturn default_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, …
34 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_ty…
38 static bool checkreturn pb_dec_varint(pb_istream_t *stream, const pb_field_t *field, void *dest);
[all …]
/external/nanopb-c/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()
110 pb_istream_t s; in main()
120 pb_istream_t s; in main()
129 pb_istream_t s = S("\x01\x00"); in main()
142 pb_istream_t s; in main()
[all …]
/external/grpc-grpc/third_party/nanopb/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()
107 pb_istream_t s; in main()
117 pb_istream_t s; in main()
126 pb_istream_t s = S("\x01\x00"); in main()
139 pb_istream_t s; in main()
[all …]
/external/nanopb-c/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_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()
84 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_emptymsg()
90 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_varint()
101 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_svarint()
112 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/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()
85 static bool read_emptymsg(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_emptymsg()
91 static bool read_repeated_varint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_varint()
102 static bool read_repeated_svarint(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_svarint()
113 static bool read_repeated_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) in read_repeated_fixed32()
[all …]
/external/grpc-grpc/third_party/nanopb/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/grpc-grpc/third_party/nanopb/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/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/grpc-grpc/third_party/nanopb/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/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dfuzzstub.c21 pb_istream_t stream; in do_static_decode()
44 pb_istream_t stream; in do_pointer_decode()
79 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_static_roundtrip()
92 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_static_roundtrip()
126 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_roundtrip()
139 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_pointer_roundtrip()
Dfuzztest.c226 pb_istream_t stream; in do_static_decode()
250 pb_istream_t stream; in do_pointer_decode()
285 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_static_roundtrip()
298 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_static_roundtrip()
332 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_roundtrip()
345 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_pointer_roundtrip()
/external/nanopb-c/tests/fuzztest/
Dfuzzstub.c21 pb_istream_t stream; in do_static_decode()
44 pb_istream_t stream; in do_pointer_decode()
79 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_static_roundtrip()
92 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_static_roundtrip()
126 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_roundtrip()
139 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_pointer_roundtrip()
Dfuzztest.c226 pb_istream_t stream; in do_static_decode()
250 pb_istream_t stream; in do_pointer_decode()
285 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_static_roundtrip()
298 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_static_roundtrip()
332 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_pointer_roundtrip()
345 pb_istream_t stream = pb_istream_from_buffer(buf2, msglen2); in do_pointer_roundtrip()
/external/grpc-grpc/third_party/nanopb/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()
/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()
/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/grpc-grpc/third_party/nanopb/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/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_handshaker_service_api_util.h136 bool decode_string_or_bytes_cb(pb_istream_t* stream, const pb_field_t* field,
142 bool decode_repeated_identity_cb(pb_istream_t* stream, const pb_field_t* field,
146 bool decode_repeated_string_cb(pb_istream_t* stream, const pb_field_t* field,
/external/grpc-grpc/third_party/nanopb/tests/oneof/
Ddecode_oneof.c12 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()
/external/nanopb-c/tests/oneof/
Ddecode_oneof.c12 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()
/external/nanopb-c/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()

1234