/external/chromium_org/net/base/ |
H A D | test_data_stream.cc | 17 int bytes_to_copy = std::min(length, bytes_remaining_); local 18 memcpy(buffer, buffer_ptr_, bytes_to_copy); 19 buffer += bytes_to_copy; 20 Consume(bytes_to_copy); 21 length -= bytes_to_copy;
|
/external/chromium_org/net/spdy/ |
H A D | spdy_read_queue.cc | 39 size_t bytes_to_copy = local 41 memcpy(out + bytes_copied, buffer->GetRemainingData(), bytes_to_copy); 42 bytes_copied += bytes_to_copy; 43 if (bytes_to_copy == buffer->GetRemainingSize()) { 47 buffer->Consume(bytes_to_copy);
|
/external/chromium_org/remoting/client/ |
H A D | audio_player.cc | 124 size_t bytes_to_copy = std::min( local 127 memcpy(next_sample, packet_data.data() + bytes_consumed_, bytes_to_copy); 129 next_sample += bytes_to_copy; 130 bytes_consumed_ += bytes_to_copy; 131 bytes_extracted += bytes_to_copy; 132 queued_bytes_ -= bytes_to_copy;
|
/external/chromium_org/chrome/browser/devtools/device/usb/ |
H A D | android_usb_socket.cc | 126 size_t bytes_to_copy = static_cast<size_t>(length) > read_buffer_.length() ? local 128 memcpy(buffer->data(), read_buffer_.data(), bytes_to_copy); 129 if (read_buffer_.length() > bytes_to_copy) 130 read_buffer_ = read_buffer_.substr(bytes_to_copy); 133 return bytes_to_copy; 239 size_t bytes_to_copy = local 242 memcpy(read_request.buffer->data(), read_buffer_.data(), bytes_to_copy); 243 if (read_buffer_.length() > bytes_to_copy) 244 read_buffer_ = read_buffer_.substr(bytes_to_copy); 247 read_request.callback.Run(bytes_to_copy); [all...] |
/external/chromium_org/content/renderer/pepper/ |
H A D | pepper_media_stream_audio_track_host.cc | 252 uint32_t bytes_to_copy = std::min(buffer_bytes_remaining, local 254 uint32_t frames_to_copy = bytes_to_copy / bytes_per_frame; 255 DCHECK_EQ(bytes_to_copy % bytes_per_frame, 0U); 257 audio_data, bytes_to_copy); 258 active_buffer_offset_ += bytes_to_copy; 259 audio_data += bytes_to_copy / sizeof(*audio_data);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/devfs/ |
H A D | tty_node.cc | 124 size_t bytes_to_copy = std::min(count, input_buffer_.size()); 131 // We found a newline in the buffer, adjust bytes_to_copy accordingly 133 bytes_to_copy = std::min(bytes_to_copy, line_len); 139 input_buffer_.begin() + bytes_to_copy, 141 *out_bytes = bytes_to_copy; 143 input_buffer_.begin() + bytes_to_copy);
|
H A D | dev_fs.cc | 214 int bytes_to_copy = std::min(bytes_left, sizeof(random_int)); 215 memcpy(out, &random_int, bytes_to_copy); 216 out += bytes_to_copy; 217 bytes_left -= bytes_to_copy;
|
/external/chromium_org/net/quic/ |
H A D | quic_http_stream.cc | 182 const int bytes_to_copy = std::min(buf_len, data->size()); local 183 memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy); 184 buf_len -= bytes_to_copy; 185 if (bytes_to_copy == data->size()) { 188 const int bytes_remaining = data->size() - bytes_to_copy; 190 memcpy(new_buffer->data(), &(data->data()[bytes_to_copy]), 195 bytes_read += bytes_to_copy;
|
/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/ |
H A D | memenv.cc | 74 size_t bytes_to_copy = n; local 77 while (bytes_to_copy > 0) { 79 if (avail > bytes_to_copy) { 80 avail = bytes_to_copy; 84 bytes_to_copy -= avail;
|
/external/chromium_org/ppapi/proxy/ |
H A D | url_loader_resource.cc | 381 size_t bytes_to_copy = std::min(buffer_.size(), user_buffer_size_); local 382 std::copy(buffer_.begin(), buffer_.begin() + bytes_to_copy, user_buffer_); 383 buffer_.erase(buffer_.begin(), buffer_.begin() + bytes_to_copy); 396 return bytes_to_copy;
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/ |
H A D | fake_pepper_interface_url_loader.cc | 216 size_t bytes_to_copy = std::min(bytes_left, src_size - src_offset); local 217 memcpy(dst, src + src_offset, bytes_to_copy); 218 dst += bytes_to_copy; 219 bytes_left -= bytes_to_copy;
|
/external/chromium_org/chrome/browser/thumbnails/ |
H A D | content_analysis.cc | 698 size_t bytes_to_copy = (c - left_copy_pixel) * bitmap.bytesPerPixel(); local 701 bytes_to_copy); 703 insertion_target += bytes_to_copy; 708 size_t bytes_to_copy = local 712 bytes_to_copy);
|
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/vp8/ |
H A D | vp8_impl.cc | 708 const uint32_t bytes_to_copy = input_image._length; local 709 if (last_keyframe_._size < bytes_to_copy) { 722 last_keyframe_._size = bytes_to_copy; 726 memcpy(last_keyframe_._buffer, input_image._buffer, bytes_to_copy); 727 last_keyframe_._length = bytes_to_copy;
|
/external/libpng/ |
H A D | pngrutil.c | 3272 unsigned int bytes_to_copy, bytes_to_jump; local 3300 bytes_to_copy = (1<<((6-pass)>>1)) * pixel_depth; 3303 if (bytes_to_copy > row_width) 3304 bytes_to_copy = row_width; 3308 bytes_to_copy = pixel_depth; 3314 * depending on the value of 'bytes_to_copy'. Special case the low 3321 switch (bytes_to_copy) 3378 * wide bytes_to_copy either - use the memcpy there. 3380 if (bytes_to_copy < 16 /*else use memcpy*/ && 3383 bytes_to_copy [all...] |
/external/lldb/source/Plugins/Process/MacOSX-Kernel/ |
H A D | CommunicationKDP.cpp | 1339 const uint32_t bytes_to_copy = std::min<uint32_t>(src_len, dst_len); local 1340 const void *src = reply_packet.GetData(&offset, bytes_to_copy); 1343 ::memcpy (dst, src, bytes_to_copy);
|
/external/bluetooth/bluedroid/bta/dm/ |
H A D | bta_dm_act.c | 2821 UINT32 bytes_to_copy; local 2832 bytes_to_copy = (p_result->length < (BD_NAME_LEN-1)) 2834 memcpy(sec_event.cfm_req.bd_name, p_result->remote_bd_name, bytes_to_copy); 2853 bytes_to_copy = (p_result->length < (BD_NAME_LEN-1)) 2855 memcpy(sec_event.pin_req.bd_name, p_result->remote_bd_name, bytes_to_copy);
|
/external/chromium_org/pdf/pdfium/ |
H A D | pdfium_engine.cc | 3196 int bytes_to_copy = rv_bytes < length ? rv_bytes : length; local 3197 memcpy(response, rv_16.c_str(), bytes_to_copy);
|