Home
last modified time | relevance | path

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

12

/external/pytorch/c10/core/impl/
DSizesAndStrides.cpp35 const auto bytesToCopy = oldSize * sizeof(inlineStorage_[0]); in resizeSlowPath() local
39 memcpy(&tempStorage[0], &inlineStorage_[0], bytesToCopy); in resizeSlowPath()
46 bytesToCopy); in resizeSlowPath()
/external/skia/fuzz/oss_fuzz/
DFuzzSkMeshSpecification.cpp18 size_t bytesToCopy = std::min(sizeof(T), data.size()); in extract() local
19 if (bytesToCopy > 0) { in extract()
20 memcpy(&result, &data.front(), bytesToCopy); in extract()
21 data = data.subspan(bytesToCopy); in extract()
/external/skia/client_utils/android/
DFrontBufferedStream.cpp132 const size_t bytesToCopy = std::min(size, fBufferedSoFar - fOffset); in readFromBuffer() local
134 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer()
139 fOffset += bytesToCopy; in readFromBuffer()
142 return bytesToCopy; in readFromBuffer()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/util/
DInputStreamUtil.java131 int bytesToCopy = min(remaining, buf.length); in combineBuffers() local
133 System.arraycopy(buf, 0, result, resultOffset, bytesToCopy); in combineBuffers()
134 remaining -= bytesToCopy; in combineBuffers()
/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHasher.java121 int bytesToCopy = bufferSize - buffer.position(); in putBytesInternal() local
122 for (int i = 0; i < bytesToCopy; i++) { in putBytesInternal()
/external/guava/android/guava/src/com/google/common/hash/
DAbstractStreamingHasher.java121 int bytesToCopy = bufferSize - buffer.position(); in putBytesInternal() local
122 for (int i = 0; i < bytesToCopy; i++) { in putBytesInternal()
/external/tink-java/src/main/java/com/google/crypto/tink/mac/internal/
DChunkedAesCmacComputation.java103 int bytesToCopy = min(localStash.remaining(), data.remaining()); in update() local
104 for (int i = 0; i < bytesToCopy; i++) { in update()
/external/tink/java_src/src/main/java/com/google/crypto/tink/mac/internal/
DChunkedAesCmacComputation.java103 int bytesToCopy = min(localStash.remaining(), data.remaining()); in update() local
104 for (int i = 0; i < bytesToCopy; i++) { in update()
/external/libcups/cups/
Dtls-sspi.c720 int bytesToCopy = min(sspi->readBufferUsed, len); in _httpTLSRead() local
723 memcpy(buf, sspi->readBuffer, bytesToCopy); in _httpTLSRead()
724 sspi->readBufferUsed -= bytesToCopy; in _httpTLSRead()
727 memmove(sspi->readBuffer, sspi->readBuffer + bytesToCopy, sspi->readBufferUsed); in _httpTLSRead()
729 DEBUG_printf(("5_httpTLSRead: Returning %d bytes previously decrypted.", bytesToCopy)); in _httpTLSRead()
731 return (bytesToCopy); in _httpTLSRead()
839 int bytesToCopy = min((int)pDataBuffer->cbBuffer, len); in _httpTLSRead() local
841 int bytesToSave = pDataBuffer->cbBuffer - bytesToCopy; in _httpTLSRead()
844 if (bytesToCopy) in _httpTLSRead()
845 memcpy(buf, pDataBuffer->pvBuffer, bytesToCopy); in _httpTLSRead()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DAbstractLZ77CompressorInputStream.java296 private void tryToCopy(int bytesToCopy) { in tryToCopy() argument
299 int copy = Math.min((int) Math.min(bytesToCopy, bytesRemaining), in tryToCopy()
/external/webrtc/modules/video_capture/windows/
Ddevice_info_ds.cc572 uint32_t bytesToCopy = (uint32_t)(pos - startPos); in GetProductId() local
573 if (pos && (bytesToCopy < productUniqueIdUTF8Length) && in GetProductId()
574 bytesToCopy <= kVideoCaptureProductIdLength) { in GetProductId()
576 (char*)startPos, bytesToCopy); in GetProductId()
/external/skia/src/core/
DSkBlitter_Sprite.cpp109 const size_t bytesToCopy = width << fSource.shiftPerPixel(); in blitRect() local
112 memcpy(dst, src, bytesToCopy); in blitRect()
/external/mesa3d/src/intel/vulkan/grl/gpu/
Dinput_dump.cl407 uint bytesToCopy = 0;
431bytesToCopy = AlignTo128(geoDescToStore.Desc.Triangles.IndexFormat * geoDescToStore.Desc.Triangles…
433 if (bytesToCopy && (glob_id == 0))
461bytesToCopy = AlignTo128(geoDescToStore.Desc.Procedural.AABBByteStride * geoDescToStore.Desc.Proce…
468 if (bytesToCopy)
470 CopyMemory(dstDataPtr, srcDataPtr, bytesToCopy, numThreads);
/external/guava/guava/src/com/google/common/io/
DByteStreams.java225 int bytesToCopy = min(remaining, buf.length); in combineBuffers() local
227 System.arraycopy(buf, 0, result, resultOffset, bytesToCopy); in combineBuffers()
228 remaining -= bytesToCopy; in combineBuffers()
/external/guava/android/guava/src/com/google/common/io/
DByteStreams.java225 int bytesToCopy = min(remaining, buf.length); in combineBuffers() local
227 System.arraycopy(buf, 0, result, resultOffset, bytesToCopy); in combineBuffers()
228 remaining -= bytesToCopy; in combineBuffers()
/external/angle/src/libANGLE/renderer/vulkan/
DVertexArrayVk.cpp91 size_t bytesToCopy, in StreamVertexData() argument
113 memcpy(dst, srcData, bytesToCopy); in StreamVertexData()
684 size_t bytesToCopy = maxNumVertices * dstFormat.pixelBytes; in convertVertexBufferCPU() local
685 ANGLE_TRY(StreamVertexData(contextVk, conversion->getBuffer(), srcBytes, bytesToCopy, in convertVertexBufferCPU()
711 size_t bytesToCopy = maxNumVertices * dstFormat.pixelBytes; in convertVertexBufferCPU() local
713 bytesToCopy, dstOffset, maxNumVertices, srcStride, in convertVertexBufferCPU()
/external/cronet/stable/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java3537 int bytesToCopy = Math.min(l, (int) currentRemaining()); in readBytes() local
3539 byteStrings.add(ByteString.wrap(slice(idx, idx + bytesToCopy))); in readBytes()
3540 l -= bytesToCopy; in readBytes()
3541 currentByteBufferPos += bytesToCopy; in readBytes()
3890 int bytesToCopy = Math.min(l, (int) currentRemaining()); in readRawBytesTo() local
3891 UnsafeUtil.copyMemory(currentByteBufferPos, bytes, length - l + offset, bytesToCopy); in readRawBytesTo()
3892 l -= bytesToCopy; in readRawBytesTo()
3893 currentByteBufferPos += bytesToCopy; in readRawBytesTo()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java3537 int bytesToCopy = Math.min(l, (int) currentRemaining()); in readBytes() local
3539 byteStrings.add(ByteString.wrap(slice(idx, idx + bytesToCopy))); in readBytes()
3540 l -= bytesToCopy; in readBytes()
3541 currentByteBufferPos += bytesToCopy; in readBytes()
3890 int bytesToCopy = Math.min(l, (int) currentRemaining()); in readRawBytesTo() local
3891 UnsafeUtil.copyMemory(currentByteBufferPos, bytes, length - l + offset, bytesToCopy); in readRawBytesTo()
3892 l -= bytesToCopy; in readRawBytesTo()
3893 currentByteBufferPos += bytesToCopy; in readRawBytesTo()
/external/cronet/tot/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java3537 int bytesToCopy = Math.min(l, (int) currentRemaining()); in readBytes() local
3539 byteStrings.add(ByteString.wrap(slice(idx, idx + bytesToCopy))); in readBytes()
3540 l -= bytesToCopy; in readBytes()
3541 currentByteBufferPos += bytesToCopy; in readBytes()
3890 int bytesToCopy = Math.min(l, (int) currentRemaining()); in readRawBytesTo() local
3891 UnsafeUtil.copyMemory(currentByteBufferPos, bytes, length - l + offset, bytesToCopy); in readRawBytesTo()
3892 l -= bytesToCopy; in readRawBytesTo()
3893 currentByteBufferPos += bytesToCopy; in readRawBytesTo()
/external/python/cpython3/Modules/expat/
Dxmltok.c391 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8() local
392 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
393 *fromP += bytesToCopy; in utf8_toUtf8()
394 *toP += bytesToCopy; in utf8_toUtf8()
/external/expat/expat/lib/
Dxmltok.c391 const ptrdiff_t bytesToCopy = fromLim - *fromP; in utf8_toUtf8() local
392 memcpy(*toP, *fromP, bytesToCopy); in utf8_toUtf8()
393 *fromP += bytesToCopy; in utf8_toUtf8()
394 *toP += bytesToCopy; in utf8_toUtf8()
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptEngine.java1178 int bytesToCopy = min(min(limit - pos, len), buffer.remaining());
1179 src.limit(pos + bytesToCopy);
1187 int bytesWritten = writeEncryptedDataDirect(buffer, 0, bytesToCopy);
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DConscryptEngine.java1179 int bytesToCopy = min(min(limit - pos, len), buffer.remaining());
1180 src.limit(pos + bytesToCopy);
1188 int bytesWritten = writeEncryptedDataDirect(buffer, 0, bytesToCopy);
/external/angle/src/libANGLE/renderer/metal/
DProgramExecutableMtl.mm78 size_t bytesToCopy = std::min(size, bytesAvailable);
79 size_t bytesToZero = size - bytesToCopy;
81 if (bytesToCopy)
82 memcpy(dst, src, bytesToCopy);
84 memset((uint8_t *)dst + bytesToCopy, 0, bytesToZero);
/external/deqp/external/vulkancts/modules/vulkan/video/
DvktVideoBaseDecodeUtils.cpp2009 size_t bytesToCopy = std::min(initializeBufferMemorySize, newSize); in GetBitstreamBuffer() local
2011 …ewBitstreamBuffer->CopyDataFromBuffer((const uint8_t *)pInitializeBufferMemory, 0, 0, bytesToCopy); in GetBitstreamBuffer()
2012 DE_ASSERT(bytesToCopy == bytesCopied); in GetBitstreamBuffer()
2015 newBitstreamBuffer->MemsetData(0x0, bytesToCopy, newSize - bytesToCopy); in GetBitstreamBuffer()

12