/external/chromium_org/chrome/common/ |
D | partial_circular_buffer.cc | 76 uint32 to_read = Min3(buffer_size, to_wrap_pos, to_eow); in Read() local 77 memcpy(buffer_uint8, buffer_data_->data + position_, to_read); in Read() 78 position_ += to_read; in Read() 79 total_read_ += to_read; in Read() 80 read += to_read; in Read() 105 uint32 to_read = Min3(remaining_buffer_size, to_eof, to_eow); in Read() local 106 memcpy(buffer_uint8 + read, buffer_data_->data + position_, to_read); in Read() 107 position_ += to_read; in Read() 108 total_read_ += to_read; in Read() 109 read += to_read; in Read() [all …]
|
/external/qemu-pc-bios/bochs/bios/ |
D | usage.cc | 44 unsigned int to_read, index; in main() local 62 to_read = 65536; in main() 64 while (to_read > 0) { in main() 65 retval = read(bios_file, &bios[index], to_read); in main() 70 to_read -= retval; in main()
|
/external/chromium_org/content/browser/streams/ |
D | stream_url_request_job.cc | 102 int to_read = buf_size; in ReadRawData() local 103 if (max_range_ && to_read) { in ReadRawData() 104 if (to_read + total_bytes_read_ > max_range_) in ReadRawData() 105 to_read = max_range_ - total_bytes_read_; in ReadRawData() 107 if (to_read <= 0) { in ReadRawData() 113 switch (stream_->ReadRawData(buf, to_read, bytes_read)) { in ReadRawData() 120 pending_buffer_size_ = to_read; in ReadRawData()
|
D | stream.cc | 151 size_t to_read = in ReadRawData() local 154 memcpy(buf->data(), data_->data() + data_bytes_read_, to_read); in ReadRawData() 155 data_bytes_read_ += to_read; in ReadRawData() 159 *bytes_read = to_read; in ReadRawData()
|
/external/chromium_org/tools/android/file_poller/ |
D | file_poller.cc | 57 size_t to_read = size; in transfer_to_buffer() local 59 while (to_read > 0 && ((n = read(fd_in, index, to_read)) > 0)) { in transfer_to_buffer() 61 to_read -= n; in transfer_to_buffer() 65 return size - to_read; in transfer_to_buffer()
|
/external/qemu/distrib/libsparse/src/ |
D | sparse_read.c | 363 unsigned int to_read; in sparse_file_read_normal() local 372 to_read = min(remain, s->block_size); in sparse_file_read_normal() 373 ret = read_all(fd, buf, to_read); in sparse_file_read_normal() 379 if (to_read == s->block_size) { in sparse_file_read_normal() 393 sparse_file_add_fill(s, buf[0], to_read, block); in sparse_file_read_normal() 395 sparse_file_add_fd(s, fd, offset, to_read, block); in sparse_file_read_normal() 398 remain -= to_read; in sparse_file_read_normal() 399 offset += to_read; in sparse_file_read_normal()
|
/external/chromium_org/net/url_request/ |
D | url_request_test_job.cc | 233 int to_read = buf_size; in ReadRawData() local 234 if (to_read + offset_ > static_cast<int>(response_data_.length())) in ReadRawData() 235 to_read = static_cast<int>(response_data_.length()) - offset_; in ReadRawData() 237 memcpy(buf->data(), &response_data_.c_str()[offset_], to_read); in ReadRawData() 238 offset_ += to_read; in ReadRawData() 240 *bytes_read = to_read; in ReadRawData()
|
/external/libvpx/libvpx/examples/ |
D | vp8_multi_resolution_encoder.c | 70 size_t nbytes, to_read; in read_frame() local 73 to_read = img->w*img->h*3/2; in read_frame() 74 nbytes = fread(img->planes[0], 1, to_read, f); in read_frame() 75 if(nbytes != to_read) { in read_frame() 84 size_t nbytes, to_read; in read_frame_by_row() local 113 to_read = w; in read_frame_by_row() 115 nbytes = fread(ptr, 1, to_read, f); in read_frame_by_row() 116 if(nbytes != to_read) { in read_frame_by_row()
|
/external/tinycompress/ |
D | compress.c | 417 int to_read = 0; in compress_read() local 456 to_read = avail.avail; in compress_read() 458 to_read = size; in compress_read() 459 num_read = read(compress->fd, cbuf, to_read); in compress_read()
|
/external/e2fsprogs/intl/ |
D | loadmsgcat.c | 977 size_t to_read; in _nl_load_domain() local 984 to_read = size; in _nl_load_domain() 988 long int nb = (long int) read (fd, read_ptr, to_read); in _nl_load_domain() 999 to_read -= nb; in _nl_load_domain() 1001 while (to_read > 0); in _nl_load_domain()
|
/external/chromium_org/chrome/browser/sessions/ |
D | session_backend.cc | 173 int to_read = static_cast<int>(buffer_.size() - available_count_); in FillBuffer() local 175 to_read); in FillBuffer()
|
/external/libsepol/src/ |
D | policydb.c | 2176 int rc, to_read = 2; in role_read() local 2183 to_read = 3; in role_read() 2185 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read); in role_read() 2254 int rc, to_read; in type_read() local 2264 to_read = 5; in type_read() 2266 to_read = 4; in type_read() 2269 to_read = 3; in type_read() 2271 to_read = 5; in type_read() 2273 to_read = 4; in type_read() 2275 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read); in type_read() [all …]
|
/external/chromium_org/net/spdy/ |
D | spdy_framer_test.cc | 3521 size_t to_read = min(kReadChunkSize, unframed_data); in TEST_P() local 3524 to_read); in TEST_P() 3525 unframed_data -= to_read; in TEST_P() 3526 framed_data += to_read; in TEST_P() 5469 size_t to_read = min(kReadChunkSize, unframed_data); in TEST_P() local 5472 to_read); in TEST_P() 5473 unframed_data -= to_read; in TEST_P() 5474 framed_data += to_read; in TEST_P()
|
/external/chromium_org/third_party/webrtc/base/ |
D | stream.cc | 578 size_t to_read = rtc::_min(buffer_len, read_segment_available_); in Read() local 580 = rtc::FileStream::Read(buffer, to_read, read, error); in Read()
|