Home
last modified time | relevance | path

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

/external/libwebm/webm_parser/test_utils/
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()
Dlimited_reader.h42 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
/external/libwebm/webm_parser/src/
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()
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()
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()
Dfile_reader.cc37 Status FileReader::Read(std::size_t num_to_read, std::uint8_t* buffer, in Read() argument
39 assert(num_to_read > 0); in Read()
49 std::fread(static_cast<void*>(buffer), 1, num_to_read, file_.get()); in Read()
57 if (actual == num_to_read) { in Read()
97 std::size_t num_to_read = sizeof(junk); in Skip() local
98 if (num_to_skip < num_to_read) { in Skip()
99 num_to_read = static_cast<std::size_t>(num_to_skip); in Skip()
103 std::fread(static_cast<void*>(junk), 1, num_to_read, file_.get()); in Skip()
/external/webrtc/modules/audio_mixer/
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()
/external/libwebm/webm_parser/include/webm/
Dreader.h56 virtual Status Read(std::size_t num_to_read, std::uint8_t* buffer,
Dfile_reader.h64 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
Distream_reader.h67 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
Dbuffer_reader.h111 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
/external/iproute2/tc/
Demp_ematch.lex.c1205 int num_to_read = in yy_get_next_buffer() local
1208 while ( num_to_read <= 0 ) in yy_get_next_buffer()
1240 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1245 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
1246 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
1250 (yy_n_chars), num_to_read ); in yy_get_next_buffer()
/external/angle/src/compiler/preprocessor/
Dpreprocessor_lex_autogen.cpp1562 int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; variable
1564 while (num_to_read <= 0)
1594 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1597 if (num_to_read > YY_READ_BUF_SIZE)
1598 num_to_read = YY_READ_BUF_SIZE;
1602 YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), ret, num_to_read);
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DTokenizer.cpp1908 int num_to_read = variable
1911 while ( num_to_read <= 0 )
1944 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1949 if ( num_to_read > YY_READ_BUF_SIZE )
1950 num_to_read = YY_READ_BUF_SIZE;
1954 yyg->yy_n_chars, num_to_read );
/external/libpcap/
Dscanner.c4594 int num_to_read = in yy_get_next_buffer() local
4597 while ( num_to_read <= 0 ) in yy_get_next_buffer()
4630 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
4635 if ( num_to_read > YY_READ_BUF_SIZE ) in yy_get_next_buffer()
4636 num_to_read = YY_READ_BUF_SIZE; in yy_get_next_buffer()
4640 yyg->yy_n_chars, num_to_read ); in yy_get_next_buffer()
/external/swiftshader/src/OpenGL/compiler/
Dglslang_lex.cpp2543 int num_to_read = variable
2546 while ( num_to_read <= 0 )
2579 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2584 if ( num_to_read > YY_READ_BUF_SIZE )
2585 num_to_read = YY_READ_BUF_SIZE;
2589 yyg->yy_n_chars, num_to_read );
/external/angle/src/compiler/translator/
Dglslang_lex_autogen.cpp2328 int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; variable
2330 while (num_to_read <= 0)
2360 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2363 if (num_to_read > YY_READ_BUF_SIZE)
2364 num_to_read = YY_READ_BUF_SIZE;
2368 YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), ret, num_to_read);
/external/toybox/kconfig/
Dlex.zconf.c_shipped1469 int num_to_read =
1472 while ( num_to_read <= 0 )
1504 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1509 if ( num_to_read > YY_READ_BUF_SIZE )
1510 num_to_read = YY_READ_BUF_SIZE;
1514 (yy_n_chars), num_to_read );