/external/oss-fuzz/projects/ghostscript/ |
D | gstoraster_fuzzer.cc | 34 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/ |
D | cras_helpers.c | 27 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/ |
D | mysnprintf.c | 92 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/ |
D | mysnprintf.c | 96 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/ |
D | encoder.cc | 171 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/ |
D | create.py | 39 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/ |
D | create.py | 39 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/ |
D | create.py | 38 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/ |
D | create.py | 38 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/ |
D | alignment.cc | 23 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/ |
D | pool_urbg.cc | 125 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/ |
D | pool_urbg.cc | 125 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/ |
D | pool_urbg.cc | 125 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/ |
D | pool_urbg.cc | 125 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/ |
D | pool_urbg.cc | 125 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/ |
D | pool_urbg.cc | 125 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/ |
D | copy_file_range01.c | 103 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/ |
D | spake25519.c | 530 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/ |
D | spake25519.c | 530 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/ |
D | writer.rs | 77 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/ |
D | mem.c | 178 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/ |
D | mem.c | 178 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/ |
D | tensor_jni.cc | 111 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/ |
D | ar.c | 919 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/ |
D | string_view.h | 106 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;
|