Home
last modified time | relevance | path

Searched refs:pb_read (Results 1 – 16 of 16) sorted by relevance

/external/nanopb-c/
Dpb_decode.c100 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 …]
Dpb_decode.h123 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c90 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 …]
Dpb_decode.h111 bool pb_read(pb_istream_t *stream, pb_byte_t *buf, size_t count);
/external/grpc-grpc/third_party/nanopb/tests/decode_unittests/
Ddecode_unittests.c32 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/
Ddecode_unittests.c32 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/
Dalts_handshaker_service_api_util.cc118 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/
Ddecode_callbacks.c18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
/external/nanopb-c/tests/callbacks/
Ddecode_callbacks.c18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
/external/nanopb-c/tests/alltypes_proto3_callback/
Ddecode_alltypes_callback.c63 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/
Ddecode_alltypes_callback.c63 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/
Ddecode_alltypes_callback.c63 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/
Dreference.rst596 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`_.
Dconcepts.rst58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read.
/external/nanopb-c/docs/
Dreference.rst606 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`_.
Dconcepts.rst58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read.