Home
last modified time | relevance | path

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

/external/okhttp/src/main/java/libcore/net/spdy/
DSpdyStream.java265 int bytesToCopy = Math.min(count, buffer.length - pos); in read() local
266 System.arraycopy(buffer, pos, b, offset, bytesToCopy); in read()
267 pos += bytesToCopy; in read()
268 copied += bytesToCopy; in read()
276 int bytesToCopy = Math.min(limit - pos, count - copied); in read() local
277 System.arraycopy(buffer, pos, b, offset + copied, bytesToCopy); in read()
278 pos += bytesToCopy; in read()
279 copied += bytesToCopy; in read()
363 int bytesToCopy = Math.min(count, buffer.length - pos); in write() local
364 System.arraycopy(bytes, offset, buffer, pos, bytesToCopy); in write()
[all …]
/external/webkit/Source/WebCore/platform/
DSharedBuffer.cpp143 unsigned bytesToCopy = min(length, segmentFreeSpace); in append() local
146 memcpy(segment, data, bytesToCopy); in append()
147 if (static_cast<unsigned>(length) == bytesToCopy) in append()
150 length -= bytesToCopy; in append()
151 data += bytesToCopy; in append()
154 bytesToCopy = min(length, segmentSize); in append()
205 unsigned bytesToCopy = min(bytesLeft, segmentSize); in buffer() local
206 memcpy(destination, m_segments[i], bytesToCopy); in buffer()
207 destination += bytesToCopy; in buffer()
208 bytesLeft -= bytesToCopy; in buffer()
DSharedBuffer.h147 void copyDataArrayAndClear(char *destination, unsigned bytesToCopy) const;
/external/webkit/Source/WebCore/webaudio/
DJavaScriptAudioNode.cpp175 size_t bytesToCopy = sizeof(float) * framesToProcess; in process() local
176 memcpy(inputBuffer->getChannelData(0)->data() + m_bufferReadWriteIndex, sourceL, bytesToCopy); in process()
179 … memcpy(inputBuffer->getChannelData(1)->data() + m_bufferReadWriteIndex, sourceR, bytesToCopy); in process()
183 … memcpy(inputBuffer->getChannelData(1)->data() + m_bufferReadWriteIndex, sourceL, bytesToCopy); in process()
187 …emcpy(destinationL, outputBuffer->getChannelData(0)->data() + m_bufferReadWriteIndex, bytesToCopy); in process()
188 …emcpy(destinationR, outputBuffer->getChannelData(1)->data() + m_bufferReadWriteIndex, bytesToCopy); in process()
/external/webkit/Source/WebCore/platform/image-decoders/
DImageDecoder.cpp48 unsigned bytesToCopy = min(bufferLength - bytesExtracted, moreDataLength); in copyFromSharedBuffer() local
49 memcpy(buffer + bytesExtracted, moreData, bytesToCopy); in copyFromSharedBuffer()
50 bytesExtracted += bytesToCopy; in copyFromSharedBuffer()
53 offset += bytesToCopy; in copyFromSharedBuffer()
/external/webkit/Source/WebCore/platform/cf/
DSharedBufferCF.cpp102 void SharedBuffer::copyDataArrayAndClear(char *destination, unsigned bytesToCopy) const in copyDataArrayAndClear()
107 CFIndex bytesLeft = bytesToCopy; in copyDataArrayAndClear()
/external/webkit/Source/WebCore/platform/graphics/wince/
DImageBufferWinCE.cpp148 int bytesToCopy = sourceRect.width() * 4; in getImageData() local
153 const unsigned char* dstRowEnd = dst + bytesToCopy; in getImageData()
206 int bytesToCopy = destRect.width() * 4; in putImageData() local
211 const unsigned char* dstRowEnd = dst + bytesToCopy; in putImageData()
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/
DOGGLoader.java220 int bytesToCopy = getOggTotalBytes( dataBytes.length ); in readToBuffer() local
222 ByteBuffer data = BufferUtils.createByteBuffer(bytesToCopy); in readToBuffer()
223 data.put(dataBytes, 0, bytesToCopy).flip(); in readToBuffer()
/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHashFunction.java154 int bytesToCopy = bufferSize - buffer.position(); in putBytes() local
155 for (int i = 0; i < bytesToCopy; i++) { in putBytes()
/external/webkit/Source/WebCore/platform/graphics/win/
DFontCustomPlatformData.cpp139 size_t bytesToCopy = min(bytesFromData - dstOffset, m_overlayLength - srcOffset); in read() local
140 …rpret_cast<char*>(buffer) + dstOffset, m_fontData->data() + m_overlaySrc + srcOffset, bytesToCopy); in read()
/external/quake/quake/src/WinQuake/
Dsnd_android.cpp508 size_t bytesToCopy = buffer->size; in AndroidQuakeSoundCallback() local
528 gDMAByteIndex = mod(gDMAByteIndex + bytesToCopy, TOTAL_BUFFER_SIZE); in AndroidQuakeSoundCallback()
/external/skia/src/core/
DSkBitmap.cpp930 size_t bytesToCopy = tmpDst.width() * tmpDst.bytesPerPixel(); in copyTo() local
932 memcpy(dstP, srcP, bytesToCopy); in copyTo()