Lines Matching refs:cSize
2135 size_t const cSize = ZSTD_compressLiterals( in ZSTD_entropyCompressSequences_internal() local
2143 FORWARD_IF_ERROR(cSize, "ZSTD_compressLiterals failed"); in ZSTD_entropyCompressSequences_internal()
2144 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSequences_internal()
2145 op += cSize; in ZSTD_entropyCompressSequences_internal()
2299 size_t const cSize = ZSTD_entropyCompressSequences_internal( in ZSTD_entropyCompressSequences() local
2303 if (cSize == 0) return 0; in ZSTD_entropyCompressSequences()
2307 if ((cSize == ERROR(dstSize_tooSmall)) & (srcSize <= dstCapacity)) in ZSTD_entropyCompressSequences()
2309 FORWARD_IF_ERROR(cSize, "ZSTD_entropyCompressSequences_internal failed"); in ZSTD_entropyCompressSequences()
2313 if (cSize >= maxCSize) return 0; /* block not compressed */ in ZSTD_entropyCompressSequences()
2315 DEBUGLOG(4, "ZSTD_entropyCompressSequences() cSize: %zu\n", cSize); in ZSTD_entropyCompressSequences()
2316 return cSize; in ZSTD_entropyCompressSequences()
2621 size_t cSize; in ZSTD_compressBlock_internal() local
2630 if (bss == ZSTDbss_noCompress) { cSize = 0; goto out; } in ZSTD_compressBlock_internal()
2640 cSize = ZSTD_entropyCompressSequences(&zc->seqStore, in ZSTD_compressBlock_internal()
2660 cSize < rleMaxLength && in ZSTD_compressBlock_internal()
2663 cSize = 1; in ZSTD_compressBlock_internal()
2668 if (!ZSTD_isError(cSize) && cSize > 1) { in ZSTD_compressBlock_internal()
2678 return cSize; in ZSTD_compressBlock_internal()
2717 … size_t const cSize = ZSTD_compressSuperBlock(zc, dst, dstCapacity, src, srcSize, lastBlock); in ZSTD_compressBlock_targetCBlockSize_body() local
2718 if (cSize != ERROR(dstSize_tooSmall)) { in ZSTD_compressBlock_targetCBlockSize_body()
2720 FORWARD_IF_ERROR(cSize, "ZSTD_compressSuperBlock failed"); in ZSTD_compressBlock_targetCBlockSize_body()
2721 if (cSize != 0 && cSize < maxCSize + ZSTD_blockHeaderSize) { in ZSTD_compressBlock_targetCBlockSize_body()
2723 return cSize; in ZSTD_compressBlock_targetCBlockSize_body()
2741 size_t cSize = 0; in ZSTD_compressBlock_targetCBlockSize() local
2747 …cSize = ZSTD_compressBlock_targetCBlockSize_body(zc, dst, dstCapacity, src, srcSize, bss, lastBloc… in ZSTD_compressBlock_targetCBlockSize()
2748 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_targetCBlockSize_body failed"); in ZSTD_compressBlock_targetCBlockSize()
2753 return cSize; in ZSTD_compressBlock_targetCBlockSize()
2821 { size_t cSize; in ZSTD_compress_frameChunk() local
2823 … cSize = ZSTD_compressBlock_targetCBlockSize(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
2824 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_targetCBlockSize failed"); in ZSTD_compress_frameChunk()
2825 assert(cSize > 0); in ZSTD_compress_frameChunk()
2826 assert(cSize <= blockSize + ZSTD_blockHeaderSize); in ZSTD_compress_frameChunk()
2828 cSize = ZSTD_compressBlock_internal(cctx, in ZSTD_compress_frameChunk()
2831 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_internal failed"); in ZSTD_compress_frameChunk()
2833 if (cSize == 0) { /* block is not compressible */ in ZSTD_compress_frameChunk()
2834 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
2835 FORWARD_IF_ERROR(cSize, "ZSTD_noCompressBlock failed"); in ZSTD_compress_frameChunk()
2837 U32 const cBlockHeader = cSize == 1 ? in ZSTD_compress_frameChunk()
2839 lastBlock + (((U32)bt_compressed)<<1) + (U32)(cSize << 3); in ZSTD_compress_frameChunk()
2841 cSize += ZSTD_blockHeaderSize; in ZSTD_compress_frameChunk()
2849 op += cSize; in ZSTD_compress_frameChunk()
2850 assert(dstCapacity >= cSize); in ZSTD_compress_frameChunk()
2851 dstCapacity -= cSize; in ZSTD_compress_frameChunk()
2854 (unsigned)cSize); in ZSTD_compress_frameChunk()
3001 { size_t const cSize = frame ? in ZSTD_compressContinue_internal() local
3004 …FORWARD_IF_ERROR(cSize, "%s", frame ? "ZSTD_compress_frameChunk failed" : "ZSTD_compressBlock_inte… in ZSTD_compressContinue_internal()
3006 cctx->producedCSize += (cSize + fhSize); in ZSTD_compressContinue_internal()
3017 return cSize + fhSize; in ZSTD_compressContinue_internal()
3461 size_t const cSize = ZSTD_compressContinue_internal(cctx, in ZSTD_compressEnd() local
3464 FORWARD_IF_ERROR(cSize, "ZSTD_compressContinue_internal failed"); in ZSTD_compressEnd()
3465 endResult = ZSTD_writeEpilogue(cctx, (char*)dst + cSize, dstCapacity-cSize); in ZSTD_compressEnd()
3479 return cSize + endResult; in ZSTD_compressEnd()
4132 size_t const cSize = ZSTD_compressEnd(zcs, in ZSTD_compressStream_generic() local
4134 DEBUGLOG(4, "ZSTD_compressEnd : cSize=%u", (unsigned)cSize); in ZSTD_compressStream_generic()
4135 FORWARD_IF_ERROR(cSize, "ZSTD_compressEnd failed"); in ZSTD_compressStream_generic()
4137 op += cSize; in ZSTD_compressStream_generic()
4166 size_t cSize; in ZSTD_compressStream_generic() local
4177 cSize = lastBlock ? in ZSTD_compressStream_generic()
4182 …FORWARD_IF_ERROR(cSize, "%s", lastBlock ? "ZSTD_compressEnd failed" : "ZSTD_compressContinue faile… in ZSTD_compressStream_generic()
4196 cSize = lastBlock ? in ZSTD_compressStream_generic()
4202 …FORWARD_IF_ERROR(cSize, "%s", lastBlock ? "ZSTD_compressEnd failed" : "ZSTD_compressContinue faile… in ZSTD_compressStream_generic()
4208 op += cSize; in ZSTD_compressStream_generic()
4216 zcs->outBuffContentSize = cSize; in ZSTD_compressStream_generic()
4688 size_t cSize = 0; in ZSTD_compressSequences_internal() local
4707 cSize += ZSTD_blockHeaderSize; in ZSTD_compressSequences_internal()
4727 cSize += cBlockSize; in ZSTD_compressSequences_internal()
4778 cSize += cBlockSize; in ZSTD_compressSequences_internal()
4779 DEBUGLOG(4, "cSize running total: %zu", cSize); in ZSTD_compressSequences_internal()
4792 return cSize; in ZSTD_compressSequences_internal()
4799 size_t cSize = 0; in ZSTD_compressSequences() local
4811 cSize += frameHeaderSize; in ZSTD_compressSequences()
4821 cSize += compressedBlocksSize; in ZSTD_compressSequences()
4828 MEM_writeLE32((char*)dst + cSize, checksum); in ZSTD_compressSequences()
4829 cSize += 4; in ZSTD_compressSequences()
4832 DEBUGLOG(3, "Final compressed size: %zu", cSize); in ZSTD_compressSequences()
4833 return cSize; in ZSTD_compressSequences()