Home
last modified time | relevance | path

Searched refs:bytes_to_copy (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/net/base/
Dtest_data_stream.cc17 int bytes_to_copy = std::min(length, bytes_remaining_); in GetBytes() local
18 memcpy(buffer, buffer_ptr_, bytes_to_copy); in GetBytes()
19 buffer += bytes_to_copy; in GetBytes()
20 Consume(bytes_to_copy); in GetBytes()
21 length -= bytes_to_copy; in GetBytes()
/external/chromium_org/net/spdy/
Dspdy_read_queue.cc39 size_t bytes_to_copy = in Dequeue() local
41 memcpy(out + bytes_copied, buffer->GetRemainingData(), bytes_to_copy); in Dequeue()
42 bytes_copied += bytes_to_copy; in Dequeue()
43 if (bytes_to_copy == buffer->GetRemainingSize()) { in Dequeue()
47 buffer->Consume(bytes_to_copy); in Dequeue()
/external/chromium_org/chrome/browser/devtools/device/usb/
Dandroid_usb_socket.cc126 size_t bytes_to_copy = static_cast<size_t>(length) > read_buffer_.length() ? in Read() local
128 memcpy(buffer->data(), read_buffer_.data(), bytes_to_copy); in Read()
129 if (read_buffer_.length() > bytes_to_copy) in Read()
130 read_buffer_ = read_buffer_.substr(bytes_to_copy); in Read()
133 return bytes_to_copy; in Read()
239 size_t bytes_to_copy = in RespondToReaders() local
242 memcpy(read_request.buffer->data(), read_buffer_.data(), bytes_to_copy); in RespondToReaders()
243 if (read_buffer_.length() > bytes_to_copy) in RespondToReaders()
244 read_buffer_ = read_buffer_.substr(bytes_to_copy); in RespondToReaders()
247 read_request.callback.Run(bytes_to_copy); in RespondToReaders()
/external/chromium_org/remoting/client/
Daudio_player.cc124 size_t bytes_to_copy = std::min( in FillWithSamples() local
127 memcpy(next_sample, packet_data.data() + bytes_consumed_, bytes_to_copy); in FillWithSamples()
129 next_sample += bytes_to_copy; in FillWithSamples()
130 bytes_consumed_ += bytes_to_copy; in FillWithSamples()
131 bytes_extracted += bytes_to_copy; in FillWithSamples()
132 queued_bytes_ -= bytes_to_copy; in FillWithSamples()
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/devfs/
Dtty_node.cc124 size_t bytes_to_copy = std::min(count, input_buffer_.size()); in Read() local
133 bytes_to_copy = std::min(bytes_to_copy, line_len); in Read()
139 input_buffer_.begin() + bytes_to_copy, in Read()
141 *out_bytes = bytes_to_copy; in Read()
143 input_buffer_.begin() + bytes_to_copy); in Read()
Ddev_fs.cc214 int bytes_to_copy = std::min(bytes_left, sizeof(random_int)); in Read() local
215 memcpy(out, &random_int, bytes_to_copy); in Read()
216 out += bytes_to_copy; in Read()
217 bytes_left -= bytes_to_copy; in Read()
/external/chromium_org/content/renderer/pepper/
Dpepper_media_stream_audio_track_host.cc252 uint32_t bytes_to_copy = std::min(buffer_bytes_remaining, in OnData() local
254 uint32_t frames_to_copy = bytes_to_copy / bytes_per_frame; in OnData()
255 DCHECK_EQ(bytes_to_copy % bytes_per_frame, 0U); in OnData()
257 audio_data, bytes_to_copy); in OnData()
258 active_buffer_offset_ += bytes_to_copy; in OnData()
259 audio_data += bytes_to_copy / sizeof(*audio_data); in OnData()
/external/chromium_org/net/quic/
Dquic_http_stream.cc182 const int bytes_to_copy = std::min(buf_len, data->size()); in ReadResponseBody() local
183 memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy); in ReadResponseBody()
184 buf_len -= bytes_to_copy; in ReadResponseBody()
185 if (bytes_to_copy == data->size()) { in ReadResponseBody()
188 const int bytes_remaining = data->size() - bytes_to_copy; in ReadResponseBody()
190 memcpy(new_buffer->data(), &(data->data()[bytes_to_copy]), in ReadResponseBody()
195 bytes_read += bytes_to_copy; in ReadResponseBody()
/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/
Dmemenv.cc74 size_t bytes_to_copy = n; in Read() local
77 while (bytes_to_copy > 0) { in Read()
79 if (avail > bytes_to_copy) { in Read()
80 avail = bytes_to_copy; in Read()
84 bytes_to_copy -= avail; in Read()
/external/chromium_org/ppapi/proxy/
Durl_loader_resource.cc381 size_t bytes_to_copy = std::min(buffer_.size(), user_buffer_size_); in FillUserBuffer() local
382 std::copy(buffer_.begin(), buffer_.begin() + bytes_to_copy, user_buffer_); in FillUserBuffer()
383 buffer_.erase(buffer_.begin(), buffer_.begin() + bytes_to_copy); in FillUserBuffer()
396 return bytes_to_copy; in FillUserBuffer()
/external/libpng/
Dpngrutil.c3272 unsigned int bytes_to_copy, bytes_to_jump; in png_combine_row() local
3300 bytes_to_copy = (1<<((6-pass)>>1)) * pixel_depth; in png_combine_row()
3303 if (bytes_to_copy > row_width) in png_combine_row()
3304 bytes_to_copy = (unsigned int)/*SAFE*/row_width; in png_combine_row()
3308 bytes_to_copy = pixel_depth; in png_combine_row()
3321 switch (bytes_to_copy) in png_combine_row()
3380 if (bytes_to_copy < 16 /*else use memcpy*/ && in png_combine_row()
3383 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row()
3391 bytes_to_copy % (sizeof (png_uint_32)) == 0 && in png_combine_row()
3397 size_t skip = (bytes_to_jump-bytes_to_copy) / in png_combine_row()
[all …]
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/
Dfake_pepper_interface_url_loader.cc216 size_t bytes_to_copy = std::min(bytes_left, src_size - src_offset); in Read() local
217 memcpy(dst, src + src_offset, bytes_to_copy); in Read()
218 dst += bytes_to_copy; in Read()
219 bytes_left -= bytes_to_copy; in Read()
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/vp8/
Dvp8_impl.cc708 const uint32_t bytes_to_copy = input_image._length; in Decode() local
709 if (last_keyframe_._size < bytes_to_copy) { in Decode()
722 last_keyframe_._size = bytes_to_copy; in Decode()
726 memcpy(last_keyframe_._buffer, input_image._buffer, bytes_to_copy); in Decode()
727 last_keyframe_._length = bytes_to_copy; in Decode()
/external/chromium_org/chrome/browser/thumbnails/
Dcontent_analysis.cc698 size_t bytes_to_copy = (c - left_copy_pixel) * bitmap.bytesPerPixel(); in ComputeDecimatedImage() local
701 bytes_to_copy); in ComputeDecimatedImage()
703 insertion_target += bytes_to_copy; in ComputeDecimatedImage()
708 size_t bytes_to_copy = in ComputeDecimatedImage() local
712 bytes_to_copy); in ComputeDecimatedImage()
/external/lldb/source/Plugins/Process/MacOSX-Kernel/
DCommunicationKDP.cpp1339 const uint32_t bytes_to_copy = std::min<uint32_t>(src_len, dst_len); in SendRequestReadRegisters() local
1340 const void *src = reply_packet.GetData(&offset, bytes_to_copy); in SendRequestReadRegisters()
1343 ::memcpy (dst, src, bytes_to_copy); in SendRequestReadRegisters()
/external/bluetooth/bluedroid/bta/dm/
Dbta_dm_act.c2821 UINT32 bytes_to_copy; in bta_dm_pinname_cback() local
2832 bytes_to_copy = (p_result->length < (BD_NAME_LEN-1)) in bta_dm_pinname_cback()
2834 memcpy(sec_event.cfm_req.bd_name, p_result->remote_bd_name, bytes_to_copy); in bta_dm_pinname_cback()
2853 bytes_to_copy = (p_result->length < (BD_NAME_LEN-1)) in bta_dm_pinname_cback()
2855 memcpy(sec_event.pin_req.bd_name, p_result->remote_bd_name, bytes_to_copy); in bta_dm_pinname_cback()
/external/chromium_org/pdf/pdfium/
Dpdfium_engine.cc3196 int bytes_to_copy = rv_bytes < length ? rv_bytes : length; in Form_Response() local
3197 memcpy(response, rv_16.c_str(), bytes_to_copy); in Form_Response()