/external/nanopb-c/ |
D | pb_decode.c | 100 bool checkreturn pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in pb_read() function 109 if (!pb_read(stream, tmp, 16)) in pb_read() 115 return pb_read(stream, tmp, count); in pb_read() 278 if (!pb_read(stream, &byte, 1)) in pb_skip_varint() 290 return pb_read(stream, NULL, length); in pb_skip_string() 321 case PB_WT_64BIT: return pb_read(stream, NULL, 8); in pb_skip_field() 323 case PB_WT_32BIT: return pb_read(stream, NULL, 4); in pb_skip_field() 342 if (!pb_read(stream, buf, 1)) return false; in read_raw_value() 348 return pb_read(stream, buf, 8); in read_raw_value() 352 return pb_read(stream, buf, 4); in read_raw_value() [all …]
|
D | pb_decode.h | 123 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
|
/external/grpc-grpc/third_party/nanopb/ |
D | pb_decode.c | 90 bool checkreturn pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count) in pb_read() function 99 if (!pb_read(stream, tmp, 16)) in pb_read() 105 return pb_read(stream, tmp, count); in pb_read() 235 if (!pb_read(stream, &byte, 1)) in pb_skip_varint() 247 return pb_read(stream, NULL, length); in pb_skip_string() 281 case PB_WT_64BIT: return pb_read(stream, NULL, 8); in pb_skip_field() 283 case PB_WT_32BIT: return pb_read(stream, NULL, 4); in pb_skip_field() 302 if (!pb_read(stream, buf, 1)) return false; in read_raw_value() 308 return pb_read(stream, buf, 8); in read_raw_value() 312 return pb_read(stream, buf, 4); in read_raw_value() [all …]
|
D | pb_decode.h | 111 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
|
/external/grpc-grpc/third_party/nanopb/tests/decode_unittests/ |
D | decode_unittests.c | 32 if (!pb_read(stream, &byte, 1)) in callback_check() 52 TEST(pb_read(&stream, buffer2, 6)) in main() 55 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main() 58 TEST(!pb_read(&stream, buffer2, 1)) in main() 66 TEST(pb_read(&stream, buffer, 5)) in main() 68 TEST(!pb_read(&stream, buffer, 50)) in main() 70 TEST(!pb_read(&stream, buffer, 5)) in main() 72 TEST(pb_read(&stream, buffer, 15)) in main()
|
/external/nanopb-c/tests/decode_unittests/ |
D | decode_unittests.c | 32 if (!pb_read(stream, &byte, 1)) in callback_check() 52 TEST(pb_read(&stream, buffer2, 6)) in main() 55 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main() 58 TEST(!pb_read(&stream, buffer2, 1)) in main() 66 TEST(pb_read(&stream, buffer, 5)) in main() 68 TEST(!pb_read(&stream, buffer, 50)) in main() 70 TEST(!pb_read(&stream, buffer, 5)) in main() 72 TEST(pb_read(&stream, buffer, 15)) in main()
|
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
D | alts_handshaker_service_api_util.cc | 118 if (!pb_read(stream, GRPC_SLICE_START_PTR(*cb_slice), stream->bytes_left)) in decode_string_or_bytes_cb() 141 if (!pb_read(stream, GRPC_SLICE_START_PTR(*cb_slice), stream->bytes_left)) in decode_repeated_string_cb()
|
/external/grpc-grpc/third_party/nanopb/tests/callbacks/ |
D | decode_callbacks.c | 18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
|
/external/nanopb-c/tests/callbacks/ |
D | decode_callbacks.c | 18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
|
/external/nanopb-c/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 63 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_string() 140 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_repeated_string()
|
/external/nanopb-c/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 63 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_string() 141 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_repeated_string()
|
/external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 63 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_string() 137 if (len > sizeof(buf) - 1 || !pb_read(stream, buf, len)) in read_repeated_string()
|
/external/grpc-grpc/third_party/nanopb/docs/ |
D | reference.rst | 596 pb_read section in pb_decode.h 600 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 607 End of file is signalled by *stream->bytes_left* being zero after pb_read returns false. 700 …ou can therefore check the total length in *stream->bytes_left* and read the data using `pb_read`_.
|
D | concepts.rst | 58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read.
|
/external/nanopb-c/docs/ |
D | reference.rst | 606 pb_read section in pb_decode.h 610 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count); 617 End of file is signalled by *stream->bytes_left* being zero after pb_read returns false. 710 …ou can therefore check the total length in *stream->bytes_left* and read the data using `pb_read`_.
|
D | concepts.rst | 58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read.
|