• Home
  • Raw
  • Download

Lines Matching refs:tmpInSize

177     size_t tmpInSize;  member
453 cctxPtr->tmpInSize = 0; in LZ4F_compressBegin()
575 …if (dstCapacity < LZ4F_compressBound_internal(srcSize, &(cctxPtr->prefs), cctxPtr->tmpInSize)) ret… in LZ4F_compressUpdate()
580 if (cctxPtr->tmpInSize > 0) { /* some data already within tmp buffer */ in LZ4F_compressUpdate()
581 size_t const sizeToCopy = blockSize - cctxPtr->tmpInSize; in LZ4F_compressUpdate()
584 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, srcSize); in LZ4F_compressUpdate()
586 cctxPtr->tmpInSize += srcSize; in LZ4F_compressUpdate()
591 memcpy(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, sizeToCopy); in LZ4F_compressUpdate()
597 cctxPtr->tmpInSize = 0; in LZ4F_compressUpdate()
639 cctxPtr->tmpInSize = sizeToCopy; in LZ4F_compressUpdate()
664 if (cctxPtr->tmpInSize == 0) return 0; /* nothing to flush */ in LZ4F_flush()
666 …if (dstCapacity < (cctxPtr->tmpInSize + 4)) return err0r(LZ4F_ERROR_dstMaxSize_tooSmall); /* +4 … in LZ4F_flush()
673 …dstPtr += LZ4F_compressBlock(dstPtr, cctxPtr->tmpIn, cctxPtr->tmpInSize, compress, cctxPtr->lz4Ctx… in LZ4F_flush()
674 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += cctxPtr->tmpInSize; in LZ4F_flush()
675 cctxPtr->tmpInSize = 0; in LZ4F_flush()
738 size_t tmpInSize; member
840 dctxPtr->tmpInSize = srcSize; in LZ4F_decodeHeader()
869 dctxPtr->tmpInSize = srcSize; in LZ4F_decodeHeader()
913 dctxPtr->tmpInSize = 0; in LZ4F_decodeHeader()
1080 dctxPtr->tmpInSize = 0; in LZ4F_decompress()
1086 { size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize; in LZ4F_decompress()
1088 memcpy(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1089 dctxPtr->tmpInSize += sizeToCopy; in LZ4F_decompress()
1091 if (dctxPtr->tmpInSize < dctxPtr->tmpInTarget) { in LZ4F_decompress()
1092 …nextSrcSizeHint = (dctxPtr->tmpInTarget - dctxPtr->tmpInSize) + BHSize; /* rest of header + next… in LZ4F_decompress()
1108 dctxPtr->tmpInSize = 0; in LZ4F_decompress()
1114 { size_t sizeToCopy = BHSize - dctxPtr->tmpInSize; in LZ4F_decompress()
1116 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1118 dctxPtr->tmpInSize += sizeToCopy; in LZ4F_decompress()
1119 … if (dctxPtr->tmpInSize < BHSize) { /* not enough input to get full cBlockSize; wait for more */ in LZ4F_decompress()
1120 nextSrcSizeHint = BHSize - dctxPtr->tmpInSize; in LZ4F_decompress()
1173 dctxPtr->tmpInSize = 0; in LZ4F_decompress()
1183 { size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize; in LZ4F_decompress()
1185 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1186 dctxPtr->tmpInSize += sizeToCopy; in LZ4F_decompress()
1188 if (dctxPtr->tmpInSize < dctxPtr->tmpInTarget) { /* need more input */ in LZ4F_decompress()
1189 nextSrcSizeHint = (dctxPtr->tmpInTarget - dctxPtr->tmpInSize) + BHSize; in LZ4F_decompress()
1296 dctxPtr->tmpInSize = 0; in LZ4F_decompress()
1307 size_t sizeToCopy = 4 - dctxPtr->tmpInSize; in LZ4F_decompress()
1309 memcpy(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1311 dctxPtr->tmpInSize += sizeToCopy; in LZ4F_decompress()
1312 if (dctxPtr->tmpInSize < 4) { /* not enough input to read complete suffix */ in LZ4F_decompress()
1313 nextSrcSizeHint = 4 - dctxPtr->tmpInSize; in LZ4F_decompress()
1336 dctxPtr->tmpInSize = 4; in LZ4F_decompress()
1344 size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize; in LZ4F_decompress()
1346 memcpy(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy); in LZ4F_decompress()
1348 dctxPtr->tmpInSize += sizeToCopy; in LZ4F_decompress()
1349 …if (dctxPtr->tmpInSize < dctxPtr->tmpInTarget) { /* not enough input to get full sBlockSize; wait … in LZ4F_decompress()
1350 nextSrcSizeHint = dctxPtr->tmpInTarget - dctxPtr->tmpInSize; in LZ4F_decompress()