Lines Matching refs:cSize

623 		size_t const cSize = ZSTD_compressLiterals(zc, op, dstCapacity, literals, litSize);  in ZSTD_compressSequences_internal()  local
624 if (ZSTD_isError(cSize)) in ZSTD_compressSequences_internal()
625 return cSize; in ZSTD_compressSequences_internal()
626 op += cSize; in ZSTD_compressSequences_internal()
834 size_t const cSize = ZSTD_compressSequences_internal(zc, dst, dstCapacity); in ZSTD_compressSequences() local
841 int const uncompressibleError = cSize == ERROR(dstSize_tooSmall) && srcSize <= dstCapacity; in ZSTD_compressSequences()
844 if (ZSTD_isError(cSize) && !uncompressibleError) in ZSTD_compressSequences()
845 return cSize; in ZSTD_compressSequences()
846 if (cSize >= maxCSize || uncompressibleError) { in ZSTD_compressSequences()
853 return cSize; in ZSTD_compressSequences()
2369 size_t cSize; in ZSTD_compress_generic() local
2403cSize = ZSTD_compressBlock_internal(cctx, op + ZSTD_blockHeaderSize, dstCapacity - ZSTD_blockHeade… in ZSTD_compress_generic()
2404 if (ZSTD_isError(cSize)) in ZSTD_compress_generic()
2405 return cSize; in ZSTD_compress_generic()
2407 if (cSize == 0) { /* block is not compressible */ in ZSTD_compress_generic()
2413 cSize = ZSTD_blockHeaderSize + blockSize; in ZSTD_compress_generic()
2415 U32 const cBlockHeader24 = lastBlock + (((U32)bt_compressed) << 1) + (U32)(cSize << 3); in ZSTD_compress_generic()
2417 cSize += ZSTD_blockHeaderSize; in ZSTD_compress_generic()
2421 dstCapacity -= cSize; in ZSTD_compress_generic()
2423 op += cSize; in ZSTD_compress_generic()
2530 …size_t const cSize = frame ? ZSTD_compress_generic(cctx, dst, dstCapacity, src, srcSize, lastFrame… in ZSTD_compressContinue_internal() local
2532 if (ZSTD_isError(cSize)) in ZSTD_compressContinue_internal()
2533 return cSize; in ZSTD_compressContinue_internal()
2534 return cSize + fhSize; in ZSTD_compressContinue_internal()
2809 size_t const cSize = ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 1, 1); in ZSTD_compressEnd() local
2810 if (ZSTD_isError(cSize)) in ZSTD_compressEnd()
2811 return cSize; in ZSTD_compressEnd()
2812 endResult = ZSTD_writeEpilogue(cctx, (char *)dst + cSize, dstCapacity - cSize); in ZSTD_compressEnd()
2815 return cSize + endResult; in ZSTD_compressEnd()
3159 size_t cSize; in ZSTD_compressStream_generic() local
3166cSize = (flush == zsf_end) ? ZSTD_compressEnd(zcs->cctx, cDst, oSize, zcs->inBuff + zcs->inToCompr… in ZSTD_compressStream_generic()
3168 if (ZSTD_isError(cSize)) in ZSTD_compressStream_generic()
3169 return cSize; in ZSTD_compressStream_generic()
3178 op += cSize; in ZSTD_compressStream_generic()
3181 zcs->outBuffContentSize = cSize; in ZSTD_compressStream_generic()