Lines Matching refs:tmpInSize
123 size_t tmpInSize;
140 size_t tmpInSize;
437 cctxPtr->tmpInSize = 0;
584 if (cctxPtr->tmpInSize > 0) /* some data already within tmp buffer */
586 size_t sizeToCopy = blockSize - cctxPtr->tmpInSize;
590 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, srcSize);
592 cctxPtr->tmpInSize += srcSize;
599 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, sizeToCopy);
605 cctxPtr->tmpInSize = 0;
654 cctxPtr->tmpInSize = sizeToCopy;
681 if (cctxPtr->tmpInSize == 0) return 0; /* nothing to flush */
683 if (dstMaxSize < (cctxPtr->tmpInSize + 8)) return (size_t)-LZ4F_ERROR_dstMaxSize_tooSmall; /* +8 : block header(4) + block checksum(4) */
690 dstPtr += LZ4F_compressBlock(dstPtr, cctxPtr->tmpIn, cctxPtr->tmpInSize, compress, cctxPtr->lz4CtxPtr, cctxPtr->prefs.compressionLevel);
691 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += cctxPtr->tmpInSize;
692 cctxPtr->tmpInSize = 0;
828 dctxPtr->tmpInSize = srcSize;
860 dctxPtr->tmpInSize = srcSize;
904 dctxPtr->tmpInSize = 0;
1090 dctxPtr->tmpInSize = 0;
1097 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
1099 memcpy(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1100 dctxPtr->tmpInSize += sizeToCopy;
1102 if (dctxPtr->tmpInSize < dctxPtr->tmpInTarget)
1104 nextSrcSizeHint = (dctxPtr->tmpInTarget - dctxPtr->tmpInSize) + BHSize; /* rest of header + nextBlockHeader */
1125 dctxPtr->tmpInSize = 0;
1133 size_t sizeToCopy = BHSize - dctxPtr->tmpInSize;
1135 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1137 dctxPtr->tmpInSize += sizeToCopy;
1138 if (dctxPtr->tmpInSize < BHSize) /* not enough input to get full cBlockSize; wait for more */
1140 nextSrcSizeHint = BHSize - dctxPtr->tmpInSize;
1201 dctxPtr->tmpInSize = 0;
1213 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
1215 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1216 dctxPtr->tmpInSize += sizeToCopy;
1218 if (dctxPtr->tmpInSize < dctxPtr->tmpInTarget) /* need more input */
1220 nextSrcSizeHint = (dctxPtr->tmpInTarget - dctxPtr->tmpInSize) + BHSize;
1341 dctxPtr->tmpInSize = 0;
1354 size_t sizeToCopy = 4 - dctxPtr->tmpInSize;
1356 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1358 dctxPtr->tmpInSize += sizeToCopy;
1359 if (dctxPtr->tmpInSize < 4) /* not enough input to read complete suffix */
1361 nextSrcSizeHint = 4 - dctxPtr->tmpInSize;
1389 dctxPtr->tmpInSize = 4;
1398 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
1400 memcpy(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
1402 dctxPtr->tmpInSize += sizeToCopy;
1403 if (dctxPtr->tmpInSize < dctxPtr->tmpInTarget) /* not enough input to get full sBlockSize; wait for more */
1405 nextSrcSizeHint = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;