Home
last modified time | relevance | path

Searched refs:to_copy (Results 1 – 25 of 27) sorted by relevance

12

/third_party/glib/glib/
Dgstdio-private.c87 gsize to_copy = in_to_copy; in _g_win32_copy_and_maybe_terminate() local
96 if (to_copy == 0) in _g_win32_copy_and_maybe_terminate()
102 if (to_copy >= buf_size) in _g_win32_copy_and_maybe_terminate()
105 to_copy = buf_size; in _g_win32_copy_and_maybe_terminate()
107 else if (to_copy > buf_size - 2) in _g_win32_copy_and_maybe_terminate()
112 memcpy (buf, data, to_copy); in _g_win32_copy_and_maybe_terminate()
119 *alloc_buf = g_malloc (to_copy + extra_bytes); in _g_win32_copy_and_maybe_terminate()
120 memcpy (*alloc_buf, data, to_copy); in _g_win32_copy_and_maybe_terminate()
124 return to_copy; in _g_win32_copy_and_maybe_terminate()
131 if (to_copy >= 2 && buf_in_chars[to_copy - 2] == 0 && in _g_win32_copy_and_maybe_terminate()
[all …]
Dgstdio.c376 gsize to_copy; in _g_win32_readlink_handle_raw() local
414 to_copy = rep_buf->SymbolicLinkReparseBuffer.SubstituteNameLength; in _g_win32_readlink_handle_raw()
420 to_copy = rep_buf->MountPointReparseBuffer.SubstituteNameLength; in _g_win32_readlink_handle_raw()
423 to_copy = 0; in _g_win32_readlink_handle_raw()
425 return _g_win32_copy_and_maybe_terminate (data, to_copy, buf, buf_size, alloc_buf, terminate); in _g_win32_readlink_handle_raw()
459 DWORD to_copy; in _g_win32_readlink_utf16_raw() local
494 to_copy = _g_win32_readlink_handle_raw (h, reparse_tag, buf, buf_size, alloc_buf, terminate); in _g_win32_readlink_utf16_raw()
498 return to_copy; in _g_win32_readlink_utf16_raw()
/third_party/ffmpeg/libavformat/
Drtpdec_qdm2.c158 unsigned int id, len, type, to_copy; in qdm2_parse_subpacket() local
176 to_copy = FFMIN(len + (p - &buf[1]), 0x800 - qdm->len[id]); in qdm2_parse_subpacket()
177 memcpy(&qdm->buf[id][qdm->len[id]], buf + 1, to_copy); in qdm2_parse_subpacket()
178 qdm->len[id] += to_copy; in qdm2_parse_subpacket()
190 int to_copy, n, res, include_csum; in qdm2_restore_block() local
221 to_copy = FFMIN(qdm->len[n], pkt->size - (p - pkt->data)); in qdm2_restore_block()
222 memcpy(p, qdm->buf[n], to_copy); in qdm2_restore_block()
Dasync.c185 int fifo_space, to_copy; in async_buffer_task() local
223 to_copy = FFMIN(4096, fifo_space); in async_buffer_task()
224 ret = ring_generic_write(ring, (void *)h, to_copy, wrapped_url_read); in async_buffer_task()
341 int fifo_size, to_copy; in async_read_internal() local
347 to_copy = FFMIN(to_read, fifo_size); in async_read_internal()
348 if (to_copy > 0) { in async_read_internal()
349 ring_generic_read(ring, dest, to_copy, func); in async_read_internal()
351 dest = (uint8_t *)dest + to_copy; in async_read_internal()
352 c->logical_pos += to_copy; in async_read_internal()
353 to_read -= to_copy; in async_read_internal()
/third_party/flutter/skia/infra/bots/assets/chromebook_x86_64_gles/
Dcreate.py38 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
39 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
40 to_copy.extend(glob.glob(os.path.join(gl_path,'libdrm*')))
41 for f in to_copy:
/third_party/flutter/skia/infra/bots/assets/chromebook_arm_gles/
Dcreate.py38 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
39 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
40 to_copy.extend(glob.glob(os.path.join(gl_path,'libmali*')))
41 for f in to_copy:
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-number-prototype.c104 lit_utf8_size_t to_copy = JERRY_MIN (num_digits, to_num_digits); in ecma_builtin_number_prototype_helper_to_string() local
105 to_copy = JERRY_MIN (to_copy, (lit_utf8_size_t) exponent); in ecma_builtin_number_prototype_helper_to_string()
106 memmove (p, digits_p, (size_t) to_copy); in ecma_builtin_number_prototype_helper_to_string()
107 p += to_copy; in ecma_builtin_number_prototype_helper_to_string()
108 to_num_digits -= to_copy; in ecma_builtin_number_prototype_helper_to_string()
109 digits_p += to_copy; in ecma_builtin_number_prototype_helper_to_string()
110 num_digits -= to_copy; in ecma_builtin_number_prototype_helper_to_string()
111 exponent -= (int32_t) to_copy; in ecma_builtin_number_prototype_helper_to_string()
131 lit_utf8_size_t to_copy = JERRY_MIN (num_digits, to_num_digits); in ecma_builtin_number_prototype_helper_to_string() local
132 memmove (p, digits_p, (size_t) to_copy); in ecma_builtin_number_prototype_helper_to_string()
[all …]
/third_party/skia/infra/bots/assets/chromebook_x86_64_gles/
Dcreate.py47 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
48 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
49 to_copy.extend(glob.glob(os.path.join(gl_path,'libdrm*')))
50 for f in to_copy:
/third_party/skia/infra/bots/assets/chromebook_arm_gles/
Dcreate.py47 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
48 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
49 to_copy.extend(glob.glob(os.path.join(gl_path,'libmali*')))
50 for f in to_copy:
/third_party/abseil-cpp/absl/random/internal/
Dpool_urbg.cc125 size_t to_copy = std::min(bytes, remaining); in Fill() local
126 std::memcpy(out, &state_[next_], to_copy); in Fill()
127 out += to_copy; in Fill()
128 bytes -= to_copy; in Fill()
129 next_ += (to_copy + sizeof(state_[0]) - 1) / sizeof(state_[0]); in Fill()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dpool_urbg.cc125 size_t to_copy = std::min(bytes, remaining); in Fill() local
126 std::memcpy(out, &state_[next_], to_copy); in Fill()
127 out += to_copy; in Fill()
128 bytes -= to_copy; in Fill()
129 next_ += (to_copy + sizeof(state_[0]) - 1) / sizeof(state_[0]); in Fill()
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range01.c103 size_t to_copy = len; in test_one() local
131 off_new_out, to_copy, 0)); in test_one()
138 to_copy -= TST_RET; in test_one()
139 } while (to_copy > 0); in test_one()
/third_party/node/tools/inspector_protocol/
Droll.py125 to_copy = [f for f in src_files
130 print('To copy: %s' % to_copy)
131 if not to_add and not to_delete and not to_copy:
138 for f in to_add + to_copy:
/third_party/mesa3d/src/util/perf/
Du_trace.c492 unsigned to_copy = MIN2(TRACES_PER_CHUNK - to_chunk->num_traces, in u_trace_clone_append() local
495 to_copy = MIN2(to_copy, end_it.event_idx - from_idx); in u_trace_clone_append()
500 to_copy); in u_trace_clone_append()
504 to_copy * sizeof(struct u_trace_event)); in u_trace_clone_append()
517 to_chunk->num_traces += to_copy; in u_trace_clone_append()
518 from_idx += to_copy; in u_trace_clone_append()
/third_party/gstreamer/gstplugins_bad/sys/mediafoundation/
Dgstmfvideobuffer.cpp534 gint to_copy = 0; in ContiguousCopyFromUnlocked() local
537 to_copy = width; in ContiguousCopyFromUnlocked()
539 to_copy = (gint) src_buffer_length - offset; in ContiguousCopyFromUnlocked()
541 if (to_copy <= 0) in ContiguousCopyFromUnlocked()
544 memcpy (dst, src_buffer + offset, to_copy); in ContiguousCopyFromUnlocked()
/third_party/curl/lib/
Dtransfer.c137 size_t to_copy = (size*nitems < bytes_left) ? size*nitems : bytes_left; in trailers_read() local
138 if(to_copy) { in trailers_read()
141 to_copy); in trailers_read()
142 data->state.trailers_bytes_sent += to_copy; in trailers_read()
144 return to_copy; in trailers_read()
/third_party/node/src/
Dnode_buffer.cc553 uint32_t to_copy = std::min( in Copy() local
557 memmove(target_data + target_start, source.data() + source_start, to_copy); in Copy()
558 args.GetReturnValue().Set(to_copy); in Copy()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dscan.c3210 const u8 *to_copy; in wpas_mac_addr_rand_scan_get_mask() local
3216 to_copy = wpa_s->mac_addr_scan; in wpas_mac_addr_rand_scan_get_mask()
3218 to_copy = wpa_s->mac_addr_sched_scan; in wpas_mac_addr_rand_scan_get_mask()
3220 to_copy = wpa_s->mac_addr_pno; in wpas_mac_addr_rand_scan_get_mask()
3228 os_memcpy(mask, to_copy + ETH_ALEN, ETH_ALEN); in wpas_mac_addr_rand_scan_get_mask()
/third_party/python/Modules/
D_testcapimodule.c2139 PyObject *from, *to, *to_copy; in unicode_copycharacters() local
2147 if (!(to_copy = PyUnicode_New(PyUnicode_GET_LENGTH(to), in unicode_copycharacters()
2151 if (PyUnicode_Fill(to_copy, 0, PyUnicode_GET_LENGTH(to_copy), 0U) < 0) { in unicode_copycharacters()
2152 Py_DECREF(to_copy); in unicode_copycharacters()
2156 if ((copied = PyUnicode_CopyCharacters(to_copy, to_start, from, in unicode_copycharacters()
2158 Py_DECREF(to_copy); in unicode_copycharacters()
2162 return Py_BuildValue("(Nn)", to_copy, copied); in unicode_copycharacters()
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/contrib/minizip/
Dzip.c247 unsigned char* to_copy; in add_data_in_datablock() local
263 to_copy = &(ldi->data[ldi->filled_in_this_block]); in add_data_in_datablock()
266 *(to_copy+i)=*(from_copy+i); in add_data_in_datablock()
/third_party/zlib/contrib/minizip/
Dzip.c247 unsigned char* to_copy; in add_data_in_datablock() local
263 to_copy = &(ldi->data[ldi->filled_in_this_block]); in add_data_in_datablock()
266 *(to_copy+i)=*(from_copy+i); in add_data_in_datablock()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/contrib/minizip/
Dzip.c247 unsigned char* to_copy; in add_data_in_datablock() local
263 to_copy = &(ldi->data[ldi->filled_in_this_block]); in add_data_in_datablock()
266 *(to_copy+i)=*(from_copy+i); in add_data_in_datablock()
/third_party/flutter/skia/third_party/externals/zlib/contrib/minizip/
Dzip.c247 unsigned char* to_copy; in add_data_in_datablock() local
263 to_copy = &(ldi->data[ldi->filled_in_this_block]); in add_data_in_datablock()
266 *(to_copy+i)=*(from_copy+i); in add_data_in_datablock()
/third_party/skia/third_party/externals/zlib/contrib/minizip/
Dzip.c247 unsigned char* to_copy; in add_data_in_datablock() local
263 to_copy = &(ldi->data[ldi->filled_in_this_block]); in add_data_in_datablock()
266 *(to_copy+i)=*(from_copy+i); in add_data_in_datablock()
/third_party/node/tools/gyp/pylib/gyp/generator/
Dninja.py845 for to_copy in copies:
846 for path in to_copy["files"]:
852 os.path.join(to_copy["destination"], basename), env

12