Home
last modified time | relevance | path

Searched refs:num_to_read (Results 1 – 25 of 37) sorted by relevance

12

/aosp_15_r20/external/libwebm/webm_parser/test_utils/
H A Dlimited_reader.cc15 Status LimitedReader::Read(std::size_t num_to_read, std::uint8_t* buffer, in Read() argument
17 assert(num_to_read > 0); in Read()
22 std::size_t expected = num_to_read; in Read()
24 num_to_read = std::min({num_to_read, single_read_limit_, total_read_limit_}); in Read()
28 if (num_to_read > total_read_skip_limit_) { in Read()
29 num_to_read = static_cast<std::size_t>(total_read_skip_limit_); in Read()
32 if (num_to_read == 0) { in Read()
36 Status status = impl_->Read(num_to_read, buffer, num_actually_read); in Read()
37 assert(*num_actually_read <= num_to_read); in Read()
/aosp_15_r20/external/libwebm/webm_parser/src/
H A Distream_reader.cc35 Status IstreamReader::Read(std::size_t num_to_read, std::uint8_t* buffer, in Read() argument
37 assert(num_to_read > 0); in Read()
50 if (num_to_read > static_cast<unsigned_streamsize>(streamsize_max)) { in Read()
53 limited_num_to_read = static_cast<std::streamsize>(num_to_read); in Read()
65 if (static_cast<std::size_t>(actual) == num_to_read) { in Read()
108 std::streamsize num_to_read = static_cast<std::streamsize>(sizeof(junk)); in Skip() local
109 if (num_to_skip < static_cast<std::uint64_t>(num_to_read)) { in Skip()
110 num_to_read = static_cast<std::streamsize>(num_to_skip); in Skip()
113 istream_->read(junk, num_to_read); in Skip()
H A Dbuffer_reader.cc52 Status BufferReader::Read(std::size_t num_to_read, std::uint8_t* buffer, in Read() argument
54 assert(num_to_read > 0); in Read()
59 std::size_t expected = num_to_read; in Read()
66 if (num_to_read > num_remaining) { in Read()
67 num_to_read = static_cast<std::size_t>(num_remaining); in Read()
70 std::copy_n(data_.data() + pos_, num_to_read, buffer); in Read()
71 *num_actually_read = num_to_read; in Read()
72 pos_ += num_to_read; in Read()
H A Dparser_utils.h28 Status AccumulateIntegerBytes(int num_to_read, Reader* reader, T* integer, in AccumulateIntegerBytes() argument
40 assert(num_to_read >= 0); in AccumulateIntegerBytes()
41 assert(static_cast<std::size_t>(num_to_read) <= sizeof(T)); in AccumulateIntegerBytes()
45 if (num_to_read < 0 || static_cast<std::size_t>(num_to_read) > sizeof(T)) { in AccumulateIntegerBytes()
49 for (; num_to_read > 0; --num_to_read) { in AccumulateIntegerBytes()
H A Dfile_reader.cc50 Status FileReader::Read(std::size_t num_to_read, std::uint8_t* buffer, in Read() argument
52 assert(num_to_read > 0); in Read()
62 std::fread(static_cast<void*>(buffer), 1, num_to_read, file_.get()); in Read()
70 if (actual == num_to_read) { in Read()
109 std::size_t num_to_read = sizeof(junk); in Skip() local
110 if (num_to_skip < num_to_read) { in Skip()
111 num_to_read = static_cast<std::size_t>(num_to_skip); in Skip()
115 std::fread(static_cast<void*>(junk), 1, num_to_read, file_.get()); in Skip()
/aosp_15_r20/external/sg3_utils/testing/
H A Dsg_tst_async.cpp1156 int num_to_read = 0; in work_thread() local
1350 num_to_read = num_waiting_read; in work_thread()
1368 num_to_read = num_waiting_read; in work_thread()
1371 num_to_read = num_waiting_read; in work_thread()
1375 num_to_read = num_waiting_read; in work_thread()
1378 num_to_read = num_waiting_read / 2; in work_thread()
1387 num_to_read = num_waiting_read > 0 ? in work_thread()
1393 num_to_read = num_waiting_read / 2; in work_thread()
1398 num_to_read = 1; in work_thread()
1441 num_to_read = 0; in work_thread()
[all …]
/aosp_15_r20/system/core/libutils/binder/
H A DUnicode.cpp112 size_t num_to_read = 0; in utf32_at_internal() local
114 for (num_to_read = 1, mask = 0x40, to_ignore_mask = 0xFFFFFF80; in utf32_at_internal()
116 num_to_read++, to_ignore_mask |= mask, mask >>= 1) { in utf32_at_internal()
121 utf32 &= ~(to_ignore_mask << (6 * (num_to_read - 1))); in utf32_at_internal()
123 *num_read = num_to_read; in utf32_at_internal()
/aosp_15_r20/external/webrtc/modules/audio_mixer/
H A Daudio_mixer_test.cc63 const size_t num_to_read = number_of_channels_ * samples_per_channel_; in GetAudioFrameWithInfo() local
65 wav_reader_->ReadSamples(num_to_read, frame->mutable_data()); in GetAudioFrameWithInfo()
67 file_has_ended_ = num_to_read != num_read; in GetAudioFrameWithInfo()
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/spirit/example/lex/
Dword_count_functor_flex.cpp834 int num_to_read = variable
837 while ( num_to_read <= 0 )
874 num_to_read = yy_current_buffer->yy_buf_size -
879 if ( num_to_read > YY_READ_BUF_SIZE )
880 num_to_read = YY_READ_BUF_SIZE;
884 yy_n_chars, num_to_read );
/aosp_15_r20/system/extras/boot_control_copy/
H A Dboot_control_copy.cpp96 size_t num_to_read = remaining > COPY_BUF_SIZE ? COPY_BUF_SIZE : remaining; in copy_data() local
99 num_read = read(src_fd, copy_buf, num_to_read); in copy_data()
102 fprintf(stderr, "Error reading %zd bytes from source: %s\n", num_to_read, strerror(errno)); in copy_data()
/aosp_15_r20/out/soong/.intermediates/external/selinux/libsepol/libsepol/android_arm64_armv8-2a_cortex-a55_static/gen/lex/external/selinux/libsepol/cil/src/
Dcil_lexer.c1270 int num_to_read = in yy_get_next_buffer() local
1273 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1306 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1311 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1312 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1316 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/external/selinux/libsepol/libsepol/linux_glibc_x86_64_static/gen/lex/external/selinux/libsepol/cil/src/
Dcil_lexer.c1270 int num_to_read = in yy_get_next_buffer() local
1273 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1306 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1311 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1312 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1316 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/frameworks/rs/rsg-generator/linux_glibc_x86_64/gen/lex/frameworks/rs/
Dspec.c1303 int num_to_read = in yy_get_next_buffer() local
1306 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1339 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1344 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1345 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1349 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/external/dtc/dtc/linux_glibc_x86_64/gen/lex/external/dtc/
Ddtc-lexer.c1438 int num_to_read = in yy_get_next_buffer() local
1441 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1474 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1479 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1480 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1484 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/external/iproute2/tc/tc/android_arm64_armv8-2a_cortex-a55/gen/lex/external/iproute2/tc/
Demp_ematch.c1436 int num_to_read = in yy_get_next_buffer() local
1439 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1472 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1477 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1478 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1482 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/external/selinux/checkpolicy/checkpolicy/linux_glibc_x86_64/gen/lex/external/selinux/checkpolicy/
Dpolicy_scan.c3007 int num_to_read = in yy_get_next_buffer() local
3010 while ( num_to_read <= 0 ) in yy_get_next_buffer()
3043 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
3048 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
3049 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
3053 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm64_armv8-2a_cortex-a55_static/gen/lex/frameworks/compile/mclinker/lib/Script/
DScriptScanner.cpp2558 int num_to_read = in yy_get_next_buffer() local
2561 while ( num_to_read <= 0 ) in yy_get_next_buffer()
2594 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
2599 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
2600 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
2604 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/external/libtracefs/src/
H A Dsqlhist-lex.c1194 int num_to_read = in yy_get_next_buffer() local
1197 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1230 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1235 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1236 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1240 yyg->yy_n_chars, num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_glibc_x86_64_static/gen/lex/frameworks/compile/mclinker/lib/Script/
DScriptScanner.cpp2558 int num_to_read = in yy_get_next_buffer() local
2561 while ( num_to_read <= 0 ) in yy_get_next_buffer()
2594 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
2599 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
2600 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
2604 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/external/libconfig/lib/
H A Dscanner.c1652 int num_to_read = in yy_get_next_buffer() local
1655 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1688 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1693 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1694 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1698 yyg->yy_n_chars, num_to_read ); in yy_get_next_buffer()
/aosp_15_r20/out/soong/.intermediates/packages/modules/Bluetooth/system/gd/packet/parser/bluetooth_packetgen/linux_glibc_x86_64/gen/lex/packages/modules/Bluetooth/system/gd/packet/parser/
Dlanguage_l.cpp1611 int num_to_read = variable
1614 while ( num_to_read <= 0 )
1647 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1652 if ( num_to_read > YY_READ_BUF_SIZE )
1653 num_to_read = YY_READ_BUF_SIZE;
1657 yyg->yy_n_chars, num_to_read );
/aosp_15_r20/out/soong/.intermediates/system/tools/aidl/libaidl-common/linux_glibc_x86_64_static/gen/lex/system/tools/aidl/
Daidl_language_l.cpp1539 int num_to_read = variable
1542 while ( num_to_read <= 0 )
1575 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1580 if ( num_to_read > YY_READ_BUF_SIZE )
1581 num_to_read = YY_READ_BUF_SIZE;
1585 yyg->yy_n_chars, num_to_read );
/aosp_15_r20/out/soong/.intermediates/system/tools/hidl/libhidl-gen-ast/linux_glibc_x86_64_static/gen/lex/system/tools/hidl/
Dhidl-gen_l.cpp1911 int num_to_read = variable
1914 while ( num_to_read <= 0 )
1947 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1952 if ( num_to_read > YY_READ_BUF_SIZE )
1953 num_to_read = YY_READ_BUF_SIZE;
1957 yyg->yy_n_chars, num_to_read );
/aosp_15_r20/external/angle/src/compiler/preprocessor/
H A Dpreprocessor_lex_autogen.cpp1568 int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; variable
1570 while (num_to_read <= 0)
1600 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1603 if (num_to_read > YY_READ_BUF_SIZE)
1604 num_to_read = YY_READ_BUF_SIZE;
1608 YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), ret, num_to_read);
/aosp_15_r20/external/libpcap/
H A Dscanner.c4664 int num_to_read = in yy_get_next_buffer() local
4667 while ( num_to_read <= 0 ) in yy_get_next_buffer()
4700 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
4705 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
4706 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
4710 yyg->yy_n_chars, num_to_read ); in yy_get_next_buffer()

12