Home
last modified time | relevance | path

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

/external/libvncserver/libvncserver/
Dultra.c134 int bytesToCopy = UPDATE_BUF_SIZE - cl->ublen; in rfbSendOneRectEncodingUltra() local
136 if (i + bytesToCopy > cl->afterEncBufLen) { in rfbSendOneRectEncodingUltra()
137 bytesToCopy = cl->afterEncBufLen - i; in rfbSendOneRectEncodingUltra()
140 memcpy(&cl->updateBuf[cl->ublen], &cl->afterEncBuf[i], bytesToCopy); in rfbSendOneRectEncodingUltra()
142 cl->ublen += bytesToCopy; in rfbSendOneRectEncodingUltra()
143 i += bytesToCopy; in rfbSendOneRectEncodingUltra()
Dzlib.c232 int bytesToCopy = UPDATE_BUF_SIZE - cl->ublen; in rfbSendOneRectEncodingZlib() local
234 if (i + bytesToCopy > zlibAfterBufLen) { in rfbSendOneRectEncodingZlib()
235 bytesToCopy = zlibAfterBufLen - i; in rfbSendOneRectEncodingZlib()
238 memcpy(&cl->updateBuf[cl->ublen], &zlibAfterBuf[i], bytesToCopy); in rfbSendOneRectEncodingZlib()
240 cl->ublen += bytesToCopy; in rfbSendOneRectEncodingZlib()
241 i += bytesToCopy; in rfbSendOneRectEncodingZlib()
Dzrle.c219 int bytesToCopy = UPDATE_BUF_SIZE - cl->ublen; in rfbSendRectEncodingZRLE() local
221 if (i + bytesToCopy > ZRLE_BUFFER_LENGTH(&zos->out)) { in rfbSendRectEncodingZRLE()
222 bytesToCopy = ZRLE_BUFFER_LENGTH(&zos->out) - i; in rfbSendRectEncodingZRLE()
225 memcpy(cl->updateBuf+cl->ublen, (uint8_t*)zos->out.start + i, bytesToCopy); in rfbSendRectEncodingZRLE()
227 cl->ublen += bytesToCopy; in rfbSendRectEncodingZRLE()
228 i += bytesToCopy; in rfbSendRectEncodingZRLE()
Drre.c136 int bytesToCopy = UPDATE_BUF_SIZE - cl->ublen; in rfbSendRectEncodingRRE() local
138 if (i + bytesToCopy > cl->afterEncBufLen) { in rfbSendRectEncodingRRE()
139 bytesToCopy = cl->afterEncBufLen - i; in rfbSendRectEncodingRRE()
142 memcpy(&cl->updateBuf[cl->ublen], &cl->afterEncBuf[i], bytesToCopy); in rfbSendRectEncodingRRE()
144 cl->ublen += bytesToCopy; in rfbSendRectEncodingRRE()
145 i += bytesToCopy; in rfbSendRectEncodingRRE()
Dcorre.c169 int bytesToCopy = UPDATE_BUF_SIZE - cl->ublen; in rfbSendSmallRectEncodingCoRRE() local
171 if (i + bytesToCopy > cl->afterEncBufLen) { in rfbSendSmallRectEncodingCoRRE()
172 bytesToCopy = cl->afterEncBufLen - i; in rfbSendSmallRectEncodingCoRRE()
175 memcpy(&cl->updateBuf[cl->ublen], &cl->afterEncBuf[i], bytesToCopy); in rfbSendSmallRectEncodingCoRRE()
177 cl->ublen += bytesToCopy; in rfbSendSmallRectEncodingCoRRE()
178 i += bytesToCopy; in rfbSendSmallRectEncodingCoRRE()
/external/skia/src/utils/
DSkFrontBufferedStream.cpp104 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer() local
106 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer()
111 fOffset += bytesToCopy; in readFromBuffer()
114 return bytesToCopy; in readFromBuffer()
/external/guava/guava/src/com/google/common/hash/
DAbstractStreamingHashFunction.java162 int bytesToCopy = bufferSize - buffer.position(); in putBytes() local
163 for (int i = 0; i < bytesToCopy; i++) { in putBytes()
/external/webrtc/webrtc/modules/video_capture/windows/
Ddevice_info_ds.cc723 uint32_t bytesToCopy = (uint32_t)(pos - startPos); in GetProductId() local
724 if (pos && (bytesToCopy <= productUniqueIdUTF8Length) && bytesToCopy in GetProductId()
728 (char*) startPos, bytesToCopy); in GetProductId()
/external/opencv3/modules/java/generator/src/cpp/
DMat.cpp1967 int bytesToCopy = count * sizeof(T); in mat_get() local
1969 if(bytesToCopy > bytesRestInMat) bytesToCopy = bytesRestInMat; in mat_get()
1970 int res = bytesToCopy; in mat_get()
1974 memcpy(buff, m->ptr(row, col), bytesToCopy); in mat_get()
1978 while(bytesToCopy > 0) in mat_get()
1980 int len = std::min(bytesToCopy, bytesInRow); in mat_get()
1982 bytesToCopy -= len; in mat_get()