Lines Matching refs:tmpInSize

273     size_t tmpInSize;  /* amount of data to compress after tmpIn */
740 cctxPtr->tmpInSize = 0;
947 if (dstCapacity < LZ4F_compressBound_internal(srcSize, &(cctxPtr->prefs), cctxPtr->tmpInSize))
963 if (cctxPtr->tmpInSize > 0) { /* some data already within tmp buffer */
964 size_t const sizeToCopy = blockSize - cctxPtr->tmpInSize;
965 assert(blockSize > cctxPtr->tmpInSize);
968 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, srcSize);
970 cctxPtr->tmpInSize += srcSize;
975 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, sizeToCopy);
984 cctxPtr->tmpInSize = 0;
1038 cctxPtr->tmpInSize = sizeToCopy;
1112 if (cctxPtr->tmpInSize == 0) return 0; /* nothing to flush */
1114 RETURN_ERROR_IF(dstCapacity < (cctxPtr->tmpInSize + BHSize + BFSize), dstMaxSize_tooSmall);
1122 cctxPtr->tmpIn, cctxPtr->tmpInSize,
1129 cctxPtr->tmpIn += cctxPtr->tmpInSize;
1130 cctxPtr->tmpInSize = 0;
1215 size_t tmpInSize;
1306 dctx->tmpInSize = srcSize;
1344 dctx->tmpInSize = srcSize;
1598 dctx->tmpInSize = 0;
1606 { size_t const sizeToCopy = MIN(dctx->tmpInTarget - dctx->tmpInSize, (size_t)(srcEnd - srcPtr));
1607 memcpy(dctx->header + dctx->tmpInSize, srcPtr, sizeToCopy);
1608 dctx->tmpInSize += sizeToCopy;
1611 if (dctx->tmpInSize < dctx->tmpInTarget) {
1612 nextSrcSizeHint = (dctx->tmpInTarget - dctx->tmpInSize) + BHSize; /* rest of header + nextBlockHeader */
1635 dctx->tmpInSize = 0;
1650 dctx->tmpInSize = 0;
1657 size_t const wantedData = BHSize - dctx->tmpInSize;
1659 memcpy(dctx->tmpIn + dctx->tmpInSize, srcPtr, sizeToCopy);
1661 dctx->tmpInSize += sizeToCopy;
1663 if (dctx->tmpInSize < BHSize) { /* not enough input for cBlockSize */
1664 nextSrcSizeHint = BHSize - dctx->tmpInSize;
1731 dctx->tmpInSize = 0;
1749 if ((srcEnd-srcPtr >= 4) && (dctx->tmpInSize==0)) {
1753 size_t const stillToCopy = 4 - dctx->tmpInSize;
1755 memcpy(dctx->header + dctx->tmpInSize, srcPtr, sizeToCopy);
1756 dctx->tmpInSize += sizeToCopy;
1758 if (dctx->tmpInSize < 4) { /* all input consumed */
1785 dctx->tmpInSize = 0;
1795 { size_t const wantedData = dctx->tmpInTarget - dctx->tmpInSize;
1798 memcpy(dctx->tmpIn + dctx->tmpInSize, srcPtr, sizeToCopy);
1799 dctx->tmpInSize += sizeToCopy;
1801 if (dctx->tmpInSize < dctx->tmpInTarget) { /* need more input */
1802 nextSrcSizeHint = (dctx->tmpInTarget - dctx->tmpInSize)
1935 dctx->tmpInSize = 0;
1945 size_t const wantedData = 4 - dctx->tmpInSize;
1947 memcpy(dctx->tmpIn + dctx->tmpInSize, srcPtr, sizeToCopy);
1949 dctx->tmpInSize += sizeToCopy;
1950 if (dctx->tmpInSize < 4) { /* not enough input to read complete suffix */
1951 nextSrcSizeHint = 4 - dctx->tmpInSize;
1980 dctx->tmpInSize = 4;
1987 { size_t const sizeToCopy = MIN(dctx->tmpInTarget - dctx->tmpInSize,
1989 memcpy(dctx->header + dctx->tmpInSize, srcPtr, sizeToCopy);
1991 dctx->tmpInSize += sizeToCopy;
1992 if (dctx->tmpInSize < dctx->tmpInTarget) {
1994 nextSrcSizeHint = dctx->tmpInTarget - dctx->tmpInSize;