Home
last modified time | relevance | path

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

12

/external/oss-fuzz/projects/ghostscript/
Dgstoraster_fuzzer.cc34 size_t to_copy = min(len, g_size); in gs_stdin() local
35 to_copy = min(INT_MAX, to_copy); in gs_stdin()
37 memcpy(buf, g_data, to_copy); in gs_stdin()
39 g_data += to_copy; in gs_stdin()
40 g_size -= to_copy; in gs_stdin()
42 return to_copy; in gs_stdin()
/external/adhd/cras/src/libcras/
Dcras_helpers.c27 int to_copy = data->len - data->offset; in play_buffer_callback() local
29 if (to_copy <= 0) { in play_buffer_callback()
34 to_copy = MIN(to_copy, frames * data->frame_bytes); in play_buffer_callback()
36 memcpy(playback_samples, data->buffer + data->offset, to_copy); in play_buffer_callback()
38 data->offset += to_copy; in play_buffer_callback()
40 return to_copy / data->frame_bytes; in play_buffer_callback()
/external/python/cpython2/Python/
Dmysnprintf.c92 const size_t to_copy = (size_t)len < size ? in PyOS_vsnprintf() local
94 assert(to_copy < size); in PyOS_vsnprintf()
95 memcpy(str, buffer, to_copy); in PyOS_vsnprintf()
96 str[to_copy] = '\0'; in PyOS_vsnprintf()
/external/python/cpython3/Python/
Dmysnprintf.c96 const size_t to_copy = (size_t)len < size ? in PyOS_vsnprintf() local
98 assert(to_copy < size); in PyOS_vsnprintf()
99 memcpy(str, buffer, to_copy); in PyOS_vsnprintf()
100 str[to_copy] = '\0'; in PyOS_vsnprintf()
/external/pigweed/pw_protobuf/
Dencoder.cc171 size_t to_copy; in EncodeFrom() local
174 to_copy = cursor_ - read_cursor; in EncodeFrom()
177 to_copy = end - read_cursor; in EncodeFrom()
180 std::memmove(write_cursor, read_cursor, to_copy); in EncodeFrom()
181 write_cursor += to_copy; in EncodeFrom()
182 read_cursor += to_copy; in EncodeFrom()
/external/skia/infra/bots/assets/chromebook_arm_gles/
Dcreate.py39 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
40 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
41 to_copy.extend(glob.glob(os.path.join(gl_path,'libmali*')))
42 for f in to_copy:
/external/skia/infra/bots/assets/chromebook_x86_64_gles/
Dcreate.py39 to_copy = glob.glob(os.path.join(gl_path,'libGL*'))
40 to_copy.extend(glob.glob(os.path.join(gl_path,'libEGL*')))
41 to_copy.extend(glob.glob(os.path.join(gl_path,'libdrm*')))
42 for f in to_copy:
/external/skqp/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:
/external/skqp/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:
/external/pigweed/pw_kvs/
Dalignment.cc23 size_t to_copy = std::min(write_size_ - bytes_in_buffer_, data.size()); in Write() local
25 std::memcpy(&buffer_[bytes_in_buffer_], data.data(), to_copy); in Write()
26 PW_TRY_WITH_SIZE(AddBytesToBuffer(to_copy)); in Write()
27 data = data.subspan(to_copy); in Write()
/external/rust/crates/grpcio-sys/grpc/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()
/external/angle/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()
/external/libtextclassifier/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()
/external/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()
/external/webrtc/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()
/external/openscreen/third_party/abseil/src/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()
/external/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()
/external/rust/crates/quiche/deps/boringssl/src/crypto/curve25519/
Dspake25519.c530 size_t to_copy = max_out_key_len; in SPAKE2_process_msg() local
531 if (to_copy > sizeof(key)) { in SPAKE2_process_msg()
532 to_copy = sizeof(key); in SPAKE2_process_msg()
534 OPENSSL_memcpy(out_key, key, to_copy); in SPAKE2_process_msg()
535 *out_key_len = to_copy; in SPAKE2_process_msg()
/external/boringssl/src/crypto/curve25519/
Dspake25519.c530 size_t to_copy = max_out_key_len; in SPAKE2_process_msg() local
531 if (to_copy > sizeof(key)) { in SPAKE2_process_msg()
532 to_copy = sizeof(key); in SPAKE2_process_msg()
534 OPENSSL_memcpy(out_key, key, to_copy); in SPAKE2_process_msg()
535 *out_key_len = to_copy; in SPAKE2_process_msg()
/external/rust/crates/ring/src/io/
Dwriter.rs77 pub fn write_copy(accumulator: &mut dyn Accumulator, to_copy: untrusted::Input) { in write_copy()
78 accumulator.write_bytes(to_copy.as_slice_less_safe()) in write_copy()
/external/rust/crates/quiche/deps/boringssl/src/crypto/
Dmem.c178 size_t to_copy = new_size; in OPENSSL_realloc() local
179 if (old_size < to_copy) { in OPENSSL_realloc()
180 to_copy = old_size; in OPENSSL_realloc()
183 memcpy(ret, orig_ptr, to_copy); in OPENSSL_realloc()
/external/boringssl/src/crypto/
Dmem.c178 size_t to_copy = new_size; in OPENSSL_realloc() local
179 if (old_size < to_copy) { in OPENSSL_realloc()
180 to_copy = old_size; in OPENSSL_realloc()
183 memcpy(ret, orig_ptr, to_copy); in OPENSSL_realloc()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc111 size_t to_copy = num_elements * ElementByteSize(type); in WriteOneDimensionalArray() local
112 if (to_copy > dst_size) { in WriteOneDimensionalArray()
116 to_copy, dst_size); in WriteOneDimensionalArray()
124 return to_copy; in WriteOneDimensionalArray()
130 return to_copy; in WriteOneDimensionalArray()
136 return to_copy; in WriteOneDimensionalArray()
143 return to_copy; in WriteOneDimensionalArray()
149 return to_copy; in WriteOneDimensionalArray()
/external/elfutils/src/
Dar.c919 struct armem *to_copy = NULL; in do_oper_delete() local
976 if (to_copy == NULL) in do_oper_delete()
977 to_copy = newp->next = newp; in do_oper_delete()
980 newp->next = to_copy->next; in do_oper_delete()
981 to_copy = to_copy->next = newp; in do_oper_delete()
1025 if (likely (to_copy != NULL)) in do_oper_delete()
1041 struct armem *last = to_copy; in do_oper_delete()
1042 to_copy = to_copy->next; in do_oper_delete()
1049 if (write_member (to_copy, &start, &len, elf, cur_off, newfd) != 0) in do_oper_delete()
1051 while ((to_copy = to_copy->next) != NULL); in do_oper_delete()
/external/pigweed/pw_minimal_cpp_stdlib/public/internal/
Dstring_view.h106 const size_type to_copy = min(count, size() - pos); variable
107 for (size_type i = pos; i < pos + to_copy; ++i) {
110 return to_copy;

12