• Home
  • Raw
  • Download

Lines Matching refs:tmpInSize

216     size_t tmpInSize;  member
637 cctxPtr->tmpInSize = 0; in LZ4F_compressBegin_usingCDict()
815 if (dstCapacity < LZ4F_compressBound_internal(srcSize, &(cctxPtr->prefs), cctxPtr->tmpInSize)) in LZ4F_compressUpdate()
821 if (cctxPtr->tmpInSize > 0) { /* some data already within tmp buffer */ in LZ4F_compressUpdate()
822 size_t const sizeToCopy = blockSize - cctxPtr->tmpInSize; in LZ4F_compressUpdate()
825 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, srcSize); in LZ4F_compressUpdate()
827 cctxPtr->tmpInSize += srcSize; in LZ4F_compressUpdate()
832 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, sizeToCopy); in LZ4F_compressUpdate()
840 cctxPtr->tmpInSize = 0; in LZ4F_compressUpdate()
886 cctxPtr->tmpInSize = sizeToCopy; in LZ4F_compressUpdate()
911 if (cctxPtr->tmpInSize == 0) return 0; /* nothing to flush */ in LZ4F_flush()
913 …if (dstCapacity < (cctxPtr->tmpInSize + 4)) return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); /* +4 … in LZ4F_flush()
920 dstPtr += LZ4F_makeBlock(dstPtr, cctxPtr->tmpIn, cctxPtr->tmpInSize, in LZ4F_flush()
923 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += cctxPtr->tmpInSize; in LZ4F_flush()
924 cctxPtr->tmpInSize = 0; in LZ4F_flush()
999 size_t tmpInSize; member
1099 dctx->tmpInSize = srcSize; in LZ4F_decodeHeader()
1134 dctx->tmpInSize = srcSize; in LZ4F_decodeHeader()
1346 dctx->tmpInSize = 0; in LZ4F_decompress()
1353 … { size_t const sizeToCopy = MIN(dctx->tmpInTarget - dctx->tmpInSize, (size_t)(srcEnd - srcPtr)); in LZ4F_decompress()
1354 memcpy(dctx->header + dctx->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1355 dctx->tmpInSize += sizeToCopy; in LZ4F_decompress()
1358 if (dctx->tmpInSize < dctx->tmpInTarget) { in LZ4F_decompress()
1359 …nextSrcSizeHint = (dctx->tmpInTarget - dctx->tmpInSize) + BHSize; /* rest of header + nextBlockH… in LZ4F_decompress()
1385 dctx->tmpInSize = 0; in LZ4F_decompress()
1400 dctx->tmpInSize = 0; in LZ4F_decompress()
1407 size_t const wantedData = BHSize - dctx->tmpInSize; in LZ4F_decompress()
1409 memcpy(dctx->tmpIn + dctx->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1411 dctx->tmpInSize += sizeToCopy; in LZ4F_decompress()
1413 if (dctx->tmpInSize < BHSize) { /* not enough input for cBlockSize */ in LZ4F_decompress()
1414 nextSrcSizeHint = BHSize - dctx->tmpInSize; in LZ4F_decompress()
1469 dctx->tmpInSize = 0; in LZ4F_decompress()
1486 if ((srcEnd-srcPtr >= 4) && (dctx->tmpInSize==0)) { in LZ4F_decompress()
1490 size_t const stillToCopy = 4 - dctx->tmpInSize; in LZ4F_decompress()
1492 memcpy(dctx->header + dctx->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1493 dctx->tmpInSize += sizeToCopy; in LZ4F_decompress()
1495 if (dctx->tmpInSize < 4) { /* all input consumed */ in LZ4F_decompress()
1511 dctx->tmpInSize = 0; in LZ4F_decompress()
1521 { size_t const wantedData = dctx->tmpInTarget - dctx->tmpInSize; in LZ4F_decompress()
1524 memcpy(dctx->tmpIn + dctx->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1525 dctx->tmpInSize += sizeToCopy; in LZ4F_decompress()
1527 if (dctx->tmpInSize < dctx->tmpInTarget) { /* need more input */ in LZ4F_decompress()
1528 nextSrcSizeHint = (dctx->tmpInTarget - dctx->tmpInSize) + BHSize; in LZ4F_decompress()
1644 dctx->tmpInSize = 0; in LZ4F_decompress()
1654 size_t const wantedData = 4 - dctx->tmpInSize; in LZ4F_decompress()
1656 memcpy(dctx->tmpIn + dctx->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1658 dctx->tmpInSize += sizeToCopy; in LZ4F_decompress()
1659 if (dctx->tmpInSize < 4) { /* not enough input to read complete suffix */ in LZ4F_decompress()
1660 nextSrcSizeHint = 4 - dctx->tmpInSize; in LZ4F_decompress()
1684 dctx->tmpInSize = 4; in LZ4F_decompress()
1691 { size_t const sizeToCopy = MIN(dctx->tmpInTarget - dctx->tmpInSize, in LZ4F_decompress()
1693 memcpy(dctx->header + dctx->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1695 dctx->tmpInSize += sizeToCopy; in LZ4F_decompress()
1696 if (dctx->tmpInSize < dctx->tmpInTarget) { in LZ4F_decompress()
1698 nextSrcSizeHint = dctx->tmpInTarget - dctx->tmpInSize; in LZ4F_decompress()