HomeSort by relevance Sort by last modified time
    Searched defs:bytes_to_read (Results 1 - 25 of 27) sorted by null

1 2

  /external/chromium_org/chrome/browser/media_galleries/linux/
mtp_device_task_helper.cc 236 uint32 bytes_to_read = std::min( local
244 bytes_to_read,
  /external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/
font_input_stream.cc 83 int32_t bytes_to_read = local
86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read);
  /external/sfntly/cpp/src/sfntly/data/
font_input_stream.cc 83 int32_t bytes_to_read = local
86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read);
  /external/chromium_org/base/
sync_socket_posix.cc 180 const size_t bytes_to_read = std::min(Peek(), length - bytes_read_total); local
183 if (!bytes_to_read)
187 Receive(static_cast<char*>(buffer) + bytes_read_total, bytes_to_read);
189 if (bytes_received != bytes_to_read)
  /external/chromium_org/chrome/app/
image_pre_reader_win.cc 53 // A helper function to read the next |bytes_to_read| bytes from the file
55 bool ReadNextBytes(HANDLE file_handle, void* buffer, size_t bytes_to_read) {
58 DCHECK(bytes_to_read > 0);
61 return bytes_to_read <= std::numeric_limits<DWORD>::max() &&
64 static_cast<DWORD>(bytes_to_read),
67 bytes_read == bytes_to_read;
86 size_t bytes_to_read = desired_length - current_length;
90 bytes_to_read);
139 size_t bytes_to_read = GetPercentageOfSectionLength(section, percentage); local
140 if (bytes_to_read == 0
    [all...]
  /external/chromium_org/chrome/browser/chromeos/drive/
drive_file_stream_reader.cc 73 size_t bytes_to_read = std::min( local
75 std::memmove(buffer->data() + offset, chunk.data(), bytes_to_read);
76 offset += bytes_to_read;
77 if (bytes_to_read < chunk.size()) {
81 (*pending_data)[index]->erase(0, bytes_to_read);
  /external/chromium_org/extensions/browser/
computed_hashes.cc 179 size_t bytes_to_read = std::min(contents.size() - offset, block_size); local
182 hash->Update(block_start, bytes_to_read);
190 if (bytes_to_read == 0)
193 offset += bytes_to_read;
  /external/chromium_org/ipc/
ipc_channel_nacl.cc 326 size_t bytes_to_read = buffer_len - *bytes_read; local
327 if (vec->size() <= bytes_to_read) {
337 std::copy(vec->begin(), vec->begin() + bytes_to_read,
339 vec->erase(vec->begin(), vec->begin() + bytes_to_read);
340 *bytes_read += bytes_to_read;
  /external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/
fake_pepper_interface_url_loader.cc 205 size_t bytes_to_read = std::min(count, static_cast<size_t>(max_read_count)); local
211 size_t bytes_left = bytes_to_read;
235 memcpy(buffer, &body_.data()[offset], bytes_to_read);
238 return bytes_to_read;
425 int32_t bytes_to_read,
441 bytes_to_read = std::min<int32_t>(bytes_to_read, server_max_read_size);
444 buffer, bytes_to_read, loader_resource->read_offset);
  /external/chromium_org/net/quic/
quic_data_stream.cc 71 size_t bytes_to_read = min(iov[iov_index].iov_len, local
75 decompressed_headers_.data() + bytes_consumed, bytes_to_read);
76 bytes_consumed += bytes_to_read;
quic_stream_sequencer.cc 168 int bytes_to_read = min(iov[iov_index].iov_len - iov_offset, local
173 it->second.data() + frame_offset, bytes_to_read);
174 frame_offset += bytes_to_read;
175 iov_offset += bytes_to_read;
  /external/chromium_org/remoting/host/linux/
audio_pipe_reader.cc 167 int64 bytes_to_read = stream_position_bytes - last_capture_position_; local
172 data.resize(pos + bytes_to_read);
201 // to read |bytes_to_read| bytes, but in case it's misbehaving we need to make
  /external/chromium_org/android_webview/browser/net/
android_stream_reader_url_request_job_unittest.cc 317 const int bytes_to_read = bytes_available - offset; local
324 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
325 .WillOnce(Return(bytes_to_read/2));
326 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
327 .WillOnce(Return(bytes_to_read/2));
328 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
340 EXPECT_EQ(bytes_to_read, url_request_delegate_.bytes_received());
350 const int bytes_to_read = bytes_available - offset; local
357 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
359 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
    [all...]
  /external/chromium_org/mojo/system/
raw_channel_posix.cc 409 size_t bytes_to_read = 0; local
410 read_buffer()->GetBuffer(&buffer, &bytes_to_read);
414 fd_.get(), buffer, bytes_to_read, &read_platform_handles_);
raw_channel_win.cc 371 size_t bytes_to_read = 0; local
372 read_buffer()->GetBuffer(&buffer, &bytes_to_read);
377 static_cast<DWORD>(bytes_to_read),
  /external/chromium_org/native_client_sdk/src/examples/api/file_io/
file_io.cc 236 int32_t bytes_to_read = info.size; local
237 while (bytes_to_read > 0) {
244 bytes_to_read -= bytes_read;
  /external/chromium_org/storage/browser/blob/
blob_url_request_job.cc 321 int bytes_to_read = ComputeBytesToRead(); local
324 if (bytes_to_read == 0) {
332 return ReadBytesItem(item, bytes_to_read);
335 bytes_to_read);
368 int bytes_to_read) {
369 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read);
373 bytes_to_read);
375 AdvanceBytesRead(bytes_to_read);
380 int bytes_to_read) {
381 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read);
    [all...]
  /external/lldb/source/Plugins/Process/mach-core/
ProcessMachCore.cpp 422 size_t bytes_to_read = size; local
423 if (bytes_to_read > bytes_left)
424 bytes_to_read = bytes_left;
425 return core_objfile->CopyData (core_memory_entry->data.GetRangeBase() + offset, bytes_to_read, buf);
  /device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
QCameraMjpegDecode.cpp 622 int bytes_to_read, bytes_read, rc; local
631 bytes_to_read = (length < buf_size) ? length : buf_size;
634 ALOGD("%s: buf_ptr = %p, start_offset = %d, length = %d buf_size = %d bytes_to_read = %d", __func__, buf_ptr, start_offset, length, buf_size, bytes_to_read);
635 if (bytes_to_read)
639 memcpy(buf_ptr, (char *)mjpegd->inputMjpegBuffer + start_offset, bytes_to_read);
644 bytes_read = bytes_to_read;
  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/httpfs/
http_fs_node.cc 517 int bytes_to_read = attr.offs - read_start; local
519 error = ReadResponseToTemp(loader, bytes_to_read, &bytes_read);
524 if (bytes_read < bytes_to_read) {
630 int bytes_to_read = std::min(bytes_left, buffer_len_); local
633 loader, buffer_, bytes_to_read, &bytes_read);
657 int bytes_to_read = count; local
658 while (bytes_to_read > 0) {
662 bytes_to_read,
668 *out_bytes = count - bytes_to_read;
675 assert(bytes_read <= bytes_to_read);
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/base/
sysinfo.cc 344 const int bytes_to_read = sizeof(line)-1 - linelen; local
345 assert(bytes_to_read > 0); // because the memmove recovered >=1 bytes
346 chars_read = read(fd, line + linelen, bytes_to_read);
    [all...]
  /external/lldb/source/Plugins/Process/elf-core/
ProcessElfCore.cpp 292 size_t bytes_to_read = size; // Number of bytes to read from the core file local
300 if (bytes_to_read > bytes_left)
302 zero_fill_size = bytes_to_read - bytes_left;
303 bytes_to_read = bytes_left;
307 if (bytes_to_read)
308 bytes_copied = core_objfile->CopyData(offset + file_start, bytes_to_read, buf);
  /external/chromium_org/third_party/tcmalloc/chromium/src/base/
sysinfo.cc 359 const int bytes_to_read = sizeof(line)-1 - linelen; local
360 assert(bytes_to_read > 0); // because the memmove recovered >=1 bytes
361 chars_read = read(fd, line + linelen, bytes_to_read);
    [all...]
  /external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/
jp2.c 1009 OPJ_UINT32 bytes_to_read = (OPJ_UINT32)((channel_size[i]+7)>>3); local
1011 if (bytes_to_read > sizeof(OPJ_UINT32))
1012 bytes_to_read = sizeof(OPJ_UINT32);
1013 if ((ptrdiff_t)p_pclr_header_size < p_pclr_header_data - orig_header_data + (ptrdiff_t)bytes_to_read)
1016 opj_read_bytes(p_pclr_header_data, &l_value , bytes_to_read); /* Cji */
1017 p_pclr_header_data += bytes_to_read;
    [all...]
  /external/chromium_org/net/spdy/
spdy_framer.cc 1138 size_t bytes_to_read = std::min(*len, max_bytes); local
    [all...]

Completed in 711 milliseconds

1 2