Home
last modified time | relevance | path

Searched refs:num_bytes_read (Results 1 – 25 of 88) sorted by relevance

1234

/aosp_15_r20/external/webrtc/common_audio/
H A Dwav_file.cc101 size_t num_bytes_read; in ReadSamples() local
105 num_bytes_read = file_.Read(samples_to_convert.data(), in ReadSamples()
107 num_samples_read = num_bytes_read / sizeof(samples_to_convert[0]); in ReadSamples()
114 num_bytes_read = file_.Read(&samples[next_chunk_start], in ReadSamples()
116 num_samples_read = num_bytes_read / sizeof(samples[0]); in ReadSamples()
118 RTC_CHECK(num_samples_read == 0 || (num_bytes_read % num_samples_read) == 0) in ReadSamples()
141 size_t num_bytes_read; in ReadSamples() local
145 num_bytes_read = file_.Read(samples_to_convert.data(), in ReadSamples()
147 num_samples_read = num_bytes_read / sizeof(samples_to_convert[0]); in ReadSamples()
155 num_bytes_read = file_.Read(&samples[next_chunk_start], in ReadSamples()
[all …]
/aosp_15_r20/external/zlib/google/
H A Dzip_reader.cc378 const int num_bytes_read = in ExtractCurrentEntry() local
381 if (num_bytes_read == 0) { in ExtractCurrentEntry()
386 if (num_bytes_read < 0) { in ExtractCurrentEntry()
388 << " from ZIP: " << UnzipError(num_bytes_read); in ExtractCurrentEntry()
393 ReportProgress(listener_callback, num_bytes_read); in ExtractCurrentEntry()
396 DCHECK_LT(0, num_bytes_read); in ExtractCurrentEntry()
397 CHECK_LE(num_bytes_read, internal::kZipBufSize); in ExtractCurrentEntry()
400 remaining_capacity, base::checked_cast<uint64_t>(num_bytes_read)); in ExtractCurrentEntry()
404 if (remaining_capacity == base::checked_cast<uint64_t>(num_bytes_read)) { in ExtractCurrentEntry()
573 const int num_bytes_read = in ExtractChunk() local
[all …]
/aosp_15_r20/external/libwebm/webm_parser/test_utils/
H A Dparser_test.h48 std::uint64_t num_bytes_read = 0; in ParseAndVerify() local
49 const Status status = parser_.Feed(&callback_, &reader_, &num_bytes_read); in ParseAndVerify()
51 ASSERT_EQ(size, num_bytes_read); in ParseAndVerify()
69 std::uint64_t num_bytes_read = 0; in IncrementalParseAndVerify() local
74 num_bytes_read += local_num_bytes_read; in IncrementalParseAndVerify()
81 ASSERT_EQ(expected_num_bytes_read, num_bytes_read); in IncrementalParseAndVerify()
87 std::uint64_t num_bytes_read = 0; in ParseAndExpectResult() local
88 const Status status = parser_.Feed(&callback_, &reader_, &num_bytes_read); in ParseAndExpectResult()
H A Delement_parser_test.h50 std::uint64_t num_bytes_read = 0; in ParseAndVerify() local
51 const Status status = parser_.Feed(&callback_, &reader_, &num_bytes_read); in ParseAndVerify()
55 ASSERT_EQ(size, num_bytes_read); in ParseAndVerify()
68 std::uint64_t num_bytes_read = 0; in IncrementalParseAndVerify() local
73 num_bytes_read += local_num_bytes_read; in IncrementalParseAndVerify()
81 ASSERT_EQ(metadata_.size, num_bytes_read); in IncrementalParseAndVerify()
91 std::uint64_t num_bytes_read = 0; in ParseAndExpectResult() local
92 const Status status = parser_.Feed(&callback_, &reader_, &num_bytes_read); in ParseAndExpectResult()
/aosp_15_r20/external/libwebm/webm_parser/src/
H A Dblock_parser.cc79 std::uint64_t* num_bytes_read) { in Feed() argument
82 assert(num_bytes_read != nullptr); in Feed()
84 *num_bytes_read = 0; in Feed()
93 *num_bytes_read += local_num_bytes_read; in Feed()
122 ++*num_bytes_read; in Feed()
160 ++*num_bytes_read; in Feed()
175 *num_bytes_read += local_num_bytes_read; in Feed()
190 *num_bytes_read += local_num_bytes_read; in Feed()
246 *num_bytes_read += local_num_bytes_read; in Feed()
258 *num_bytes_read += original - lace_sizes_[current_lace_]; in Feed()
H A Dblock_header_parser.cc22 std::uint64_t* num_bytes_read) { in Feed() argument
25 assert(num_bytes_read != nullptr); in Feed()
27 *num_bytes_read = 0; in Feed()
36 *num_bytes_read += local_num_bytes_read; in Feed()
49 *num_bytes_read += local_num_bytes_read; in Feed()
64 ++*num_bytes_read; in Feed()
H A Did_parser.cc22 std::uint64_t* num_bytes_read) { in Feed() argument
25 assert(num_bytes_read != nullptr); in Feed()
28 *num_bytes_read = 0; in Feed()
47 ++*num_bytes_read; in Feed()
64 *num_bytes_read += local_num_bytes_read; in Feed()
H A Dvar_int_parser.cc25 std::uint64_t* num_bytes_read) { in Feed() argument
28 assert(num_bytes_read != nullptr); in Feed()
31 *num_bytes_read = 0; in Feed()
39 ++*num_bytes_read; in Feed()
56 *num_bytes_read += local_num_bytes_read; in Feed()
H A Dmaster_parser.cc73 std::uint64_t* num_bytes_read) { in Feed() argument
76 assert(num_bytes_read != nullptr); in Feed()
78 *num_bytes_read = 0; in Feed()
104 *num_bytes_read += local_num_bytes_read; in Feed()
128 *num_bytes_read += local_num_bytes_read; in Feed()
143 *num_bytes_read += local_num_bytes_read; in Feed()
229 *num_bytes_read += local_num_bytes_read; in Feed()
H A Dwebm_parser.cc44 std::uint64_t num_bytes_read; in Feed() local
56 status = id_parser_.Feed(callback, reader, &num_bytes_read); in Feed()
57 child_metadata_.header_size += num_bytes_read; in Feed()
72 status = size_parser_.Feed(callback, reader, &num_bytes_read); in Feed()
73 child_metadata_.header_size += num_bytes_read; in Feed()
162 status = child_parser_->Feed(callback, reader, &num_bytes_read); in Feed()
H A Dparser_utils.cc22 std::uint64_t num_bytes_read; in ReadByte() local
23 const Status status = reader->Read(1, byte, &num_bytes_read); in ReadByte()
26 assert(num_bytes_read == 0); in ReadByte()
28 assert(num_bytes_read == 1); in ReadByte()
H A Did_element_parser.cc37 std::uint64_t* num_bytes_read) { in Feed() argument
40 assert(num_bytes_read != nullptr); in Feed()
43 &value_, num_bytes_read); in Feed()
44 num_bytes_remaining_ -= static_cast<int>(*num_bytes_read); in Feed()
H A Ddate_parser.cc60 std::uint64_t* num_bytes_read) { in Feed() argument
63 assert(num_bytes_read != nullptr); in Feed()
66 &value_, num_bytes_read); in Feed()
67 num_bytes_remaining_ -= static_cast<int>(*num_bytes_read); in Feed()
H A Dskip_parser.cc33 std::uint64_t* num_bytes_read) { in Feed() argument
36 assert(num_bytes_read != nullptr); in Feed()
38 *num_bytes_read = 0; in Feed()
52 *num_bytes_read += local_num_bytes_read; in Feed()
H A Dbool_parser.h50 std::uint64_t* num_bytes_read) override { in Feed() argument
53 assert(num_bytes_read != nullptr); in Feed()
57 &uint_value, num_bytes_read); in Feed()
58 num_bytes_remaining_ -= static_cast<int>(*num_bytes_read); in Feed()
H A Dfloat_parser.cc44 std::uint64_t* num_bytes_read) { in Feed() argument
47 assert(num_bytes_read != nullptr); in Feed()
54 &uint64_value_, num_bytes_read); in Feed()
55 num_bytes_remaining_ -= static_cast<int>(*num_bytes_read); in Feed()
H A Dvirtual_block_parser.cc32 std::uint64_t* num_bytes_read) { in Feed() argument
35 assert(num_bytes_read != nullptr); in Feed()
37 *num_bytes_read = 0; in Feed()
46 *num_bytes_read += local_num_bytes_read; in Feed()
H A Dmaster_value_parser.h87 std::uint64_t* num_bytes_read) override { in Feed() argument
90 assert(num_bytes_read != nullptr); in Feed()
92 *num_bytes_read = 0; in Feed()
102 Status status = master_parser_.Feed(callback, reader, num_bytes_read); in Feed()
111 *num_bytes_read += local_num_bytes_read; in Feed()
441 std::uint64_t* num_bytes_read) override {
442 *num_bytes_read = 0;
449 status = Base::Feed(callback, reader, num_bytes_read);
H A Dsegment_parser.cc50 std::uint64_t* num_bytes_read) { in Feed() argument
53 assert(num_bytes_read != nullptr); in Feed()
55 *num_bytes_read = 0; in Feed()
73 const Status status = MasterParser::Feed(callback, reader, num_bytes_read); in Feed()
H A Dint_parser.h71 std::uint64_t* num_bytes_read) override { in Feed() argument
74 assert(num_bytes_read != nullptr); in Feed()
77 &value_, num_bytes_read); in Feed()
78 num_bytes_remaining_ -= static_cast<int>(*num_bytes_read); in Feed()
H A Dbyte_parser.h83 std::uint64_t* num_bytes_read) override { in Feed() argument
86 assert(num_bytes_read != nullptr); in Feed()
88 *num_bytes_read = 0; in Feed()
104 *num_bytes_read += local_num_bytes_read; in Feed()
/aosp_15_r20/external/tink/cc/util/
H A Dinput_stream_util.cc40 int num_bytes_read = 0; in ReadBytesFromStreamImpl() local
42 while (num_bytes_read < num_bytes) { in ReadBytesFromStreamImpl()
48 std::min(num_bytes - num_bytes_read, num_bytes_in_chunk); in ReadBytesFromStreamImpl()
51 result.begin() + num_bytes_read); in ReadBytesFromStreamImpl()
53 num_bytes_read += num_bytes_to_copy; in ReadBytesFromStreamImpl()
/aosp_15_r20/external/arm-trusted-firmware/drivers/brcm/i2c/
H A Di2c.c377 uint32_t *num_bytes_read) in iproc_i2c_data_recv() argument
412 *num_bytes_read = regval & SMB_MSTRRDDATA_MASK; in iproc_i2c_data_recv()
419 for (i = 0U; (i < *num_bytes_read) && in iproc_i2c_data_recv()
429 *num_bytes_read = 1U; in iproc_i2c_data_recv()
629 uint32_t num_bytes_read = 0; in i2c_recv_byte() local
635 rc = iproc_i2c_data_recv(&info, &num_bytes_read); in i2c_recv_byte()
687 uint32_t num_bytes_read = 0U; in i2c_read_byte() local
693 rc = iproc_i2c_data_recv(&info, &num_bytes_read); in i2c_read_byte()
/aosp_15_r20/external/trusty/arm-trusted-firmware/drivers/brcm/i2c/
Di2c.c377 uint32_t *num_bytes_read) in iproc_i2c_data_recv() argument
412 *num_bytes_read = regval & SMB_MSTRRDDATA_MASK; in iproc_i2c_data_recv()
419 for (i = 0U; (i < *num_bytes_read) && in iproc_i2c_data_recv()
429 *num_bytes_read = 1U; in iproc_i2c_data_recv()
629 uint32_t num_bytes_read = 0; in i2c_recv_byte() local
635 rc = iproc_i2c_data_recv(&info, &num_bytes_read); in i2c_recv_byte()
687 uint32_t num_bytes_read = 0U; in i2c_read_byte() local
693 rc = iproc_i2c_data_recv(&info, &num_bytes_read); in i2c_read_byte()
/aosp_15_r20/external/libchrome/mojo/core/
H A Ddata_pipe_consumer_dispatcher.cc232 MojoResult DataPipeConsumerDispatcher::EndReadData(uint32_t num_bytes_read) { in EndReadData() argument
243 if (num_bytes_read > two_phase_max_bytes_read_ || in EndReadData()
244 num_bytes_read % options_.element_num_bytes != 0) { in EndReadData()
249 (read_offset_ + num_bytes_read) % options_.capacity_num_bytes; in EndReadData()
251 DCHECK_GE(bytes_available_, num_bytes_read); in EndReadData()
252 bytes_available_ -= num_bytes_read; in EndReadData()
255 NotifyRead(num_bytes_read); in EndReadData()

1234