/external/nanopb-c/ |
D | pb_encode.h | 38 bool (*callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 67 bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 72 bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 78 bool pb_encode_nullterminated(pb_ostream_t *stream, const pb_field_t fields[], const void *src_stru… 95 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize); 115 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 124 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field); 128 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 133 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 135 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value); [all …]
|
D | pb_encode.c | 23 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr… 25 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 26 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa… 27 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa… 28 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten… 29 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const… 31 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr… 32 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s… 33 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s… 34 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s… [all …]
|
/external/grpc-grpc/third_party/nanopb/ |
D | pb_encode.h | 38 bool (*callback)(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 67 bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 72 bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct); 89 pb_ostream_t pb_ostream_from_buffer(pb_byte_t *buf, size_t bufsize); 109 bool pb_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 118 bool pb_encode_tag_for_field(pb_ostream_t *stream, const pb_field_t *field); 122 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 126 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 130 bool pb_encode_svarint(pb_ostream_t *stream, int64_t value); 133 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size); [all …]
|
D | pb_encode.c | 23 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr… 25 static bool checkreturn buf_write(pb_ostream_t *stream, const pb_byte_t *buf, size_t count); 26 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa… 27 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa… 28 static bool checkreturn default_extension_encoder(pb_ostream_t *stream, const pb_extension_t *exten… 29 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const… 30 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr… 31 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s… 32 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s… 33 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s… [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/encode_unittests/ |
D | encode_unittests.c | 10 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() 99 pb_ostream_t s; in main() 117 pb_ostream_t s; in main() 127 pb_ostream_t s; in main() [all …]
|
/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 10 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() 99 pb_ostream_t s; in main() 117 pb_ostream_t s; in main() 127 pb_ostream_t s; in main() [all …]
|
/external/nanopb-c/tests/alltypes_proto3_callback/ |
D | encode_alltypes_callback.c | 13 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_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 43 static bool write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_submsg() 50 static bool write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_emptymsg() 57 static bool write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_varint() 71 static bool write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_svarint() 85 static bool write_repeated_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_fixed32() [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/callbacks/ |
D | encode_callbacks.c | 9 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()
|
/external/nanopb-c/tests/callbacks/ |
D | encode_callbacks.c | 9 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()
|
/external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 13 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_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 43 static bool write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_submsg() 50 static bool write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_emptymsg() 57 static bool write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_varint() 71 static bool write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_svarint() 85 static bool write_repeated_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_fixed32() [all …]
|
/external/nanopb-c/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 13 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_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_string() 43 static bool write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_submsg() 50 static bool write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_emptymsg() 57 static bool write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_varint() 71 static bool write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_svarint() 85 static bool write_repeated_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) in write_repeated_fixed32() [all …]
|
/external/grpc-grpc/third_party/nanopb/examples/network_server/ |
D | common.c | 11 static bool write_callback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in write_callback() 30 pb_ostream_t pb_ostream_from_socket(int fd) in pb_ostream_from_socket() 32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; in pb_ostream_from_socket()
|
/external/nanopb-c/examples/network_server/ |
D | common.c | 11 static bool write_callback(pb_ostream_t *stream, const uint8_t *buf, size_t count) in write_callback() 30 pb_ostream_t pb_ostream_from_socket(int fd) in pb_ostream_from_socket() 32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; in pb_ostream_from_socket()
|
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
D | alts_handshaker_service_api_util.h | 119 bool encode_string_or_bytes_cb(pb_ostream_t* stream, const pb_field_t* field, 126 bool encode_repeated_identity_cb(pb_ostream_t* stream, const pb_field_t* field, 130 bool encode_repeated_string_cb(pb_ostream_t* stream, const pb_field_t* field,
|
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/ |
D | fuzzstub.c | 85 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip() 98 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip() 132 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip() 145 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
|
D | fuzztest.c | 85 pb_ostream_t stream = pb_ostream_from_buffer(buf, max_bytes); in rand_fill_protobuf() 178 pb_ostream_t stream; in do_static_encode() 291 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip() 304 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip() 338 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip() 351 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
|
/external/nanopb-c/tests/fuzztest/ |
D | fuzzstub.c | 85 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip() 98 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip() 132 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip() 145 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
|
D | fuzztest.c | 85 pb_ostream_t stream = pb_ostream_from_buffer(buf, max_bytes); in rand_fill_protobuf() 178 pb_ostream_t stream; in do_static_encode() 291 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_static_roundtrip() 304 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_static_roundtrip() 338 pb_ostream_t stream = pb_ostream_from_buffer(buf2, BUFSIZE); in do_pointer_roundtrip() 351 pb_ostream_t stream = pb_ostream_from_buffer(buf3, BUFSIZE); in do_pointer_roundtrip()
|
/external/grpc-grpc/third_party/nanopb/tests/cyclic_messages/ |
D | encode_cyclic_callback.c | 33 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()
|
/external/nanopb-c/tests/cyclic_messages/ |
D | encode_cyclic_callback.c | 33 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()
|
/external/nanopb-c/tests/basic_stream/ |
D | encode_stream.c | 10 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()
|
/external/grpc-grpc/third_party/nanopb/tests/basic_stream/ |
D | encode_stream.c | 10 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()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/ |
D | load_balancer_api.cc | 83 static bool encode_string(pb_ostream_t* stream, const pb_field_t* field, in encode_string() 90 static bool encode_drops(pb_ostream_t* stream, const pb_field_t* field, in encode_drops() 137 pb_ostream_t sizestream; in grpc_grpclb_request_encode() 138 pb_ostream_t outputstream; in grpc_grpclb_request_encode() 140 memset(&sizestream, 0, sizeof(pb_ostream_t)); in grpc_grpclb_request_encode()
|
/external/nanopb-c/tests/regression/issue_242/ |
D | zero_value.c | 14 pb_ostream_t ostream; in main() 36 pb_ostream_t ostream; in main()
|
/external/nanopb-c/tests/fixed_count/ |
D | fixed_count_unittests.c | 18 pb_ostream_t ostream; in main() 42 pb_ostream_t ostream; in main() 69 pb_ostream_t ostream; in main()
|