/external/pigweed/pw_tokenizer/ |
D | encode_args.cc | 73 size_t bytes_to_copy = 0; in EncodeString() local 76 while (string[bytes_to_copy] != '\0') { in EncodeString() 77 if (bytes_to_copy == max_bytes) { in EncodeString() 81 bytes_to_copy += 1; in EncodeString() 84 output[0] = static_cast<std::byte>(bytes_to_copy) | overflow_bit; in EncodeString() 85 std::memcpy(output.data() + 1, string, bytes_to_copy); in EncodeString() 87 return bytes_to_copy + 1; // include the status byte in the total in EncodeString()
|
/external/pigweed/pw_ring_buffer/ |
D | prefixed_entry_ring_buffer.cc | 191 size_t bytes_to_copy = std::min(read_bytes, bytes_until_wrap); in InternalRead() local 193 read_output(std::span(buffer_ + data_read_idx, bytes_to_copy)); in InternalRead() 196 if (status.ok() && (bytes_to_copy < read_bytes)) { in InternalRead() 197 status = read_output(std::span(buffer_, read_bytes - bytes_to_copy)); in InternalRead() 385 size_t bytes_to_copy = std::min(source.size(), bytes_until_wrap); in RawWrite() local 386 memcpy(buffer_ + write_idx_, source.data(), bytes_to_copy); in RawWrite() 389 if (bytes_to_copy < source.size()) { in RawWrite() 391 buffer_, source.data() + bytes_to_copy, source.size() - bytes_to_copy); in RawWrite() 401 size_t bytes_to_copy = std::min(length_bytes, bytes_until_wrap); in RawRead() local 402 memcpy(destination, buffer_ + source_idx, bytes_to_copy); in RawRead() [all …]
|
/external/tensorflow/tensorflow/core/lib/io/snappy/ |
D | snappy_outputbuffer.cc | 157 size_t bytes_to_copy = std::min(length, avail_out_); in AddToOutputBuffer() local 158 memcpy(next_out_, data, bytes_to_copy); in AddToOutputBuffer() 159 data += bytes_to_copy; in AddToOutputBuffer() 160 next_out_ += bytes_to_copy; in AddToOutputBuffer() 161 avail_out_ -= bytes_to_copy; in AddToOutputBuffer() 162 length -= bytes_to_copy; in AddToOutputBuffer()
|
/external/perfetto/tools/trace_to_text/ |
D | trace_to_text.cc | 61 size_t bytes_to_copy = 0; in WriteToZeroCopyOutput() local 64 bytes_to_copy = std::min(length, static_cast<size_t>(size)); in WriteToZeroCopyOutput() 65 memcpy(data, str, bytes_to_copy); in WriteToZeroCopyOutput() 66 length -= bytes_to_copy; in WriteToZeroCopyOutput() 67 str += bytes_to_copy; in WriteToZeroCopyOutput() 69 output->BackUp(size - static_cast<int>(bytes_to_copy)); in WriteToZeroCopyOutput()
|
/external/webrtc/test/fuzzers/ |
D | fuzz_data_helper.h | 88 size_t bytes_to_copy = std::min(BytesLeft(), sizeof(T)); in CopyTo() local 89 memcpy(object, data_.data() + data_ix_, bytes_to_copy); in CopyTo() 90 data_ix_ += bytes_to_copy; in CopyTo()
|
D | frame_buffer2_fuzzer.cc | 27 size_t bytes_to_copy = std::min(size_ - offset_, dest_size); in CopyTo() local 28 memcpy(destination, data_ + offset_, bytes_to_copy); in CopyTo() 29 offset_ += bytes_to_copy; in CopyTo()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | curl_http_request.cc | 349 size_t bytes_to_copy = in WriteCallbackDirect() local 351 memcpy(&state->buffer_[state->bytes_transferred_], ptr, bytes_to_copy); in WriteCallbackDirect() 352 state->bytes_transferred_ += bytes_to_copy; in WriteCallbackDirect() 358 return bytes_to_copy; in WriteCallbackDirect() 379 const size_t bytes_to_copy = size * nmemb; in WriteCallback() local 382 reinterpret_cast<const char*>(ptr) + bytes_to_copy); in WriteCallback() 384 return bytes_to_copy; in WriteCallback() 392 const size_t bytes_to_copy = std::min( in ReadCallback() local 395 bytes_to_copy); in ReadCallback() 396 that->post_body_read_ += bytes_to_copy; in ReadCallback() [all …]
|
D | ram_file_block_cache_test.cc | 133 size_t bytes_to_copy = std::min<size_t>(buf.size() - offset, n); in TEST() local 134 memcpy(buffer, buf.data() + offset, bytes_to_copy); in TEST() 135 *bytes_transferred = bytes_to_copy; in TEST() 212 size_t bytes_to_copy = 0; in TEST() local 216 bytes_to_copy = n; in TEST() 220 bytes_to_copy = file_size - block_size; in TEST() 221 memset(buffer, 'x', bytes_to_copy); in TEST() 224 *bytes_transferred = bytes_to_copy; in TEST()
|
D | http_request_fake.h | 134 size_t bytes_to_copy = in Send() local 136 memcpy(direct_result_buffer_, response_.data(), bytes_to_copy); in Send() 137 direct_result_bytes_transferred_ += bytes_to_copy; in Send()
|
D | ram_file_block_cache.cc | 217 size_t bytes_to_copy = end - begin; in Read() local 218 memcpy(&buffer[total_bytes_transferred], &*begin, bytes_to_copy); in Read() 219 total_bytes_transferred += bytes_to_copy; in Read()
|
/external/adhd/cras/src/server/ |
D | cras_loopback_iodev.c | 74 unsigned int frames_to_copy, bytes_to_copy, frames_copied = 0; in sample_hook() local 82 bytes_to_copy = frames_to_copy * frame_bytes; in sample_hook() 83 memcpy(buf_write_pointer(sbuf), frames, bytes_to_copy); in sample_hook() 84 buf_increment_write(sbuf, bytes_to_copy); in sample_hook() 85 frames += bytes_to_copy; in sample_hook()
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | inputbuffer.cc | 109 const int64 bytes_to_copy = in ReadNBytes() local 112 memcpy(result + *bytes_read, pos_, bytes_to_copy); in ReadNBytes() 113 pos_ += bytes_to_copy; in ReadNBytes() 114 *bytes_read += bytes_to_copy; in ReadNBytes()
|
D | buffered_inputstream.cc | 112 const int64 bytes_to_copy = in ReadNBytes() local 114 result->insert(result->size(), buf_, pos_, bytes_to_copy); in ReadNBytes() 115 pos_ += bytes_to_copy; in ReadNBytes()
|
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/gcs/ |
D | ram_file_block_cache_test.cc | 139 size_t bytes_to_copy = std::min<size_t>(buf.size() - offset, n); in TEST() local 140 memcpy(buffer, buf.data() + offset, bytes_to_copy); in TEST() 141 bytes_transferred = bytes_to_copy; in TEST() 221 size_t bytes_to_copy = 0; in TEST() local 225 bytes_to_copy = n; in TEST() 229 bytes_to_copy = file_size - block_size; in TEST() 230 memset(buffer, 'x', bytes_to_copy); in TEST() 234 return bytes_to_copy; in TEST()
|
D | ram_file_block_cache.cc | 223 size_t bytes_to_copy = end - begin; in Read() local 224 memcpy(&buffer[total_bytes_transferred], &*begin, bytes_to_copy); in Read() 225 total_bytes_transferred += bytes_to_copy; in Read()
|
/external/libaom/libaom/examples/ |
D | lightfield_bitstream_parsing.c | 309 size_t bytes_to_copy = in main() local 312 unsigned char *frame_hdr_buf = (unsigned char *)malloc(bytes_to_copy); in main() 316 memcpy(frame_hdr_buf, frame, bytes_to_copy); in main() 326 if (!aom_video_writer_write_frame(writer, frame_hdr_buf, bytes_to_copy, in main()
|
/external/puffin/src/ |
D | puffin_stream.cc | 298 auto bytes_to_copy = in Read() local 302 bytes_to_copy); in Read() 305 skip_bytes_ += bytes_to_copy; in Read() 306 bytes_read += bytes_to_copy; in Read()
|
/external/pdfium/third_party/libpng16/ |
D | pngrutil.c | 3447 unsigned int bytes_to_copy, bytes_to_jump; in png_combine_row() local 3475 bytes_to_copy = (1<<((6-pass)>>1)) * pixel_depth; in png_combine_row() 3478 if (bytes_to_copy > row_width) in png_combine_row() 3479 bytes_to_copy = (unsigned int)/*SAFE*/row_width; in png_combine_row() 3483 bytes_to_copy = pixel_depth; in png_combine_row() 3496 switch (bytes_to_copy) in png_combine_row() 3555 if (bytes_to_copy < 16 /*else use memcpy*/ && in png_combine_row() 3558 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row() 3566 bytes_to_copy % (sizeof (png_uint_32)) == 0 && in png_combine_row() 3572 size_t skip = (bytes_to_jump-bytes_to_copy) / in png_combine_row() [all …]
|
/external/libpng/ |
D | pngrutil.c | 3447 unsigned int bytes_to_copy, bytes_to_jump; in png_combine_row() local 3475 bytes_to_copy = (1<<((6-pass)>>1)) * pixel_depth; in png_combine_row() 3478 if (bytes_to_copy > row_width) in png_combine_row() 3479 bytes_to_copy = (unsigned int)/*SAFE*/row_width; in png_combine_row() 3483 bytes_to_copy = pixel_depth; in png_combine_row() 3496 switch (bytes_to_copy) in png_combine_row() 3555 if (bytes_to_copy < 16 /*else use memcpy*/ && in png_combine_row() 3558 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row() 3566 bytes_to_copy % (sizeof (png_uint_32)) == 0 && in png_combine_row() 3572 size_t skip = (bytes_to_jump-bytes_to_copy) / in png_combine_row() [all …]
|
/external/libwebm/m2ts/ |
D | webm2pes.cc | 492 const std::size_t bytes_to_copy = packet_payload_range.length - extra_bytes; in WritePesPacket() local 493 if (CopyAndEscapeStartCodes(payload_start, bytes_to_copy, packet_data) == in WritePesPacket() 499 std::size_t bytes_copied = bytes_to_copy; in WritePesPacket()
|
/external/pdfium/core/fxcodec/jbig2/ |
D | JBig2_Image.cpp | 212 int32_t bytes_to_copy = std::min(pImage->m_nStride, m_nStride - m); in SubImageFast() local 215 memcpy(pImage->GetLineUnsafe(j), GetLineUnsafe(y + j) + m, bytes_to_copy); in SubImageFast() 225 int32_t bytes_to_copy = std::min(pImage->m_nStride, m_nStride - m); in SubImageSlow() local 232 uint8_t* pDstEnd = pLineDst + bytes_to_copy; in SubImageSlow()
|
/external/tensorflow/tensorflow/lite/kernels/parse_example/ |
D | example_proto_fast_parsing.h | 236 const uint32 bytes_to_copy = in ParseFloatList() local 240 if (!stream.ReadRaw(float_list->data() + initial_size, bytes_to_copy)) in ParseFloatList()
|
/external/llvm-project/lldb/source/Plugins/Process/MacOSX-Kernel/ |
D | CommunicationKDP.cpp | 1187 const uint32_t bytes_to_copy = std::min<uint32_t>(src_len, dst_len); in SendRequestReadRegisters() local 1188 const void *src = reply_packet.GetData(&offset, bytes_to_copy); in SendRequestReadRegisters() 1190 ::memcpy(dst, src, bytes_to_copy); in SendRequestReadRegisters()
|
/external/OpenCL-CTS/test_common/miniz/ |
D | miniz.c | 1484 int bytes_to_copy = (int)MZ_MIN((size_t)n, (size_t)(*d->m_pOut_buf_size - d->m_out_buf_ofs)); in tdefl_flush_block() local 1485 memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf, bytes_to_copy); in tdefl_flush_block() 1486 d->m_out_buf_ofs += bytes_to_copy; in tdefl_flush_block() 1487 if ((n -= bytes_to_copy) != 0) in tdefl_flush_block() 1489 d->m_output_flush_ofs = bytes_to_copy; in tdefl_flush_block()
|
/external/tensorflow/tensorflow/core/util/ |
D | example_proto_fast_parsing.cc | 242 const uint32 bytes_to_copy = in ParseFloatList() local 246 if (!stream.ReadRaw(float_list->data() + initial_size, bytes_to_copy)) in ParseFloatList()
|