/external/libwebm/webm_parser/test_utils/ |
D | limited_reader.cc | 15 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()
|
D | limited_reader.h | 42 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
|
/external/libwebm/webm_parser/src/ |
D | parser_utils.h | 28 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()
|
D | istream_reader.cc | 35 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()
|
D | buffer_reader.cc | 52 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()
|
D | file_reader.cc | 37 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/ |
D | audio_mixer_test.cc | 63 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/ |
D | reader.h | 56 virtual Status Read(std::size_t num_to_read, std::uint8_t* buffer,
|
D | file_reader.h | 64 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
|
D | istream_reader.h | 67 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
|
D | buffer_reader.h | 111 Status Read(std::size_t num_to_read, std::uint8_t* buffer,
|
/external/iproute2/tc/ |
D | emp_ematch.lex.c | 1205 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/ |
D | preprocessor_lex_autogen.cpp | 1562 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/ |
D | Tokenizer.cpp | 1908 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/ |
D | scanner.c | 4594 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/ |
D | glslang_lex.cpp | 2543 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/ |
D | glslang_lex_autogen.cpp | 2328 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/ |
D | lex.zconf.c_shipped | 1469 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 );
|