Home
last modified time | relevance | path

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

12

/external/pigweed/pw_tokenizer/
Dencode_args.cc73 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/
Dprefixed_entry_ring_buffer.cc191 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/
Dsnappy_outputbuffer.cc157 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/
Dtrace_to_text.cc61 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/
Dfuzz_data_helper.h88 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()
Dframe_buffer2_fuzzer.cc27 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/
Dcurl_http_request.cc349 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 …]
Dram_file_block_cache_test.cc133 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()
Dhttp_request_fake.h134 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()
Dram_file_block_cache.cc217 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/
Dcras_loopback_iodev.c74 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/
Dinputbuffer.cc109 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()
Dbuffered_inputstream.cc112 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/
Dram_file_block_cache_test.cc139 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()
Dram_file_block_cache.cc223 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/
Dlightfield_bitstream_parsing.c309 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/
Dpuffin_stream.cc298 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/
Dpngrutil.c3447 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/
Dpngrutil.c3447 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/
Dwebm2pes.cc492 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/
DJBig2_Image.cpp212 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/
Dexample_proto_fast_parsing.h236 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/
DCommunicationKDP.cpp1187 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/
Dminiz.c1484 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/
Dexample_proto_fast_parsing.cc242 const uint32 bytes_to_copy = in ParseFloatList() local
246 if (!stream.ReadRaw(float_list->data() + initial_size, bytes_to_copy)) in ParseFloatList()

12