Lines Matching refs:sizeToCopy
586 size_t sizeToCopy = blockSize - cctxPtr->tmpInSize;
587 if (sizeToCopy > srcSize)
599 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, sizeToCopy);
600 srcPtr += sizeToCopy;
652 size_t sizeToCopy = srcEnd - srcPtr;
653 memcpy(cctxPtr->tmpIn, srcPtr, sizeToCopy);
654 cctxPtr->tmpInSize = sizeToCopy;
1097 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
1098 if (sizeToCopy > (size_t)(srcEnd - srcPtr)) sizeToCopy = srcEnd - srcPtr;
1099 memcpy(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1100 dctxPtr->tmpInSize += sizeToCopy;
1101 srcPtr += sizeToCopy;
1133 size_t sizeToCopy = BHSize - dctxPtr->tmpInSize;
1134 if (sizeToCopy > (size_t)(srcEnd - srcPtr)) sizeToCopy = srcEnd - srcPtr;
1135 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1136 srcPtr += sizeToCopy;
1137 dctxPtr->tmpInSize += sizeToCopy;
1173 size_t sizeToCopy = dctxPtr->tmpInTarget;
1174 if ((size_t)(srcEnd-srcPtr) < sizeToCopy) sizeToCopy = srcEnd - srcPtr; /* not enough input to read full block */
1175 if ((size_t)(dstEnd-dstPtr) < sizeToCopy) sizeToCopy = dstEnd - dstPtr;
1176 memcpy(dstPtr, srcPtr, sizeToCopy);
1177 if (dctxPtr->frameInfo.contentChecksumFlag) XXH32_update(&(dctxPtr->xxh), srcPtr, sizeToCopy);
1178 if (dctxPtr->frameInfo.contentSize) dctxPtr->frameRemainingSize -= sizeToCopy;
1182 LZ4F_updateDict(dctxPtr, dstPtr, sizeToCopy, dstStart, 0);
1184 srcPtr += sizeToCopy;
1185 dstPtr += sizeToCopy;
1186 if (sizeToCopy == dctxPtr->tmpInTarget) /* all copied */
1191 dctxPtr->tmpInTarget -= sizeToCopy; /* still need to copy more */
1213 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
1214 if (sizeToCopy > (size_t)(srcEnd-srcPtr)) sizeToCopy = srcEnd-srcPtr;
1215 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1216 dctxPtr->tmpInSize += sizeToCopy;
1217 srcPtr += sizeToCopy;
1306 size_t sizeToCopy = dctxPtr->tmpOutSize - dctxPtr->tmpOutStart;
1307 if (sizeToCopy > (size_t)(dstEnd-dstPtr)) sizeToCopy = dstEnd-dstPtr;
1308 memcpy(dstPtr, dctxPtr->tmpOut + dctxPtr->tmpOutStart, sizeToCopy);
1312 LZ4F_updateDict(dctxPtr, dstPtr, sizeToCopy, dstStart, 1);
1314 dctxPtr->tmpOutStart += sizeToCopy;
1315 dstPtr += sizeToCopy;
1354 size_t sizeToCopy = 4 - dctxPtr->tmpInSize;
1355 if (sizeToCopy > (size_t)(srcEnd - srcPtr)) sizeToCopy = srcEnd - srcPtr;
1356 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1357 srcPtr += sizeToCopy;
1358 dctxPtr->tmpInSize += sizeToCopy;
1398 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
1399 if (sizeToCopy > (size_t)(srcEnd - srcPtr)) sizeToCopy = srcEnd - srcPtr;
1400 memcpy(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1401 srcPtr += sizeToCopy;
1402 dctxPtr->tmpInSize += sizeToCopy;