Lines Matching refs:cSize

2521         size_t const cSize = ZSTD_compressLiterals(  in ZSTD_entropyCompressSeqStore_internal()  local
2529 FORWARD_IF_ERROR(cSize, "ZSTD_compressLiterals failed"); in ZSTD_entropyCompressSeqStore_internal()
2530 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
2531 op += cSize; in ZSTD_entropyCompressSeqStore_internal()
2610 size_t const cSize = ZSTD_entropyCompressSeqStore_internal( in ZSTD_entropyCompressSeqStore() local
2614 if (cSize == 0) return 0; in ZSTD_entropyCompressSeqStore()
2618 if ((cSize == ERROR(dstSize_tooSmall)) & (srcSize <= dstCapacity)) in ZSTD_entropyCompressSeqStore()
2620 FORWARD_IF_ERROR(cSize, "ZSTD_entropyCompressSeqStore_internal failed"); in ZSTD_entropyCompressSeqStore()
2624 if (cSize >= maxCSize) return 0; /* block not compressed */ in ZSTD_entropyCompressSeqStore()
2626 DEBUGLOG(4, "ZSTD_entropyCompressSeqStore() cSize: %zu", cSize); in ZSTD_entropyCompressSeqStore()
2627 return cSize; in ZSTD_entropyCompressSeqStore()
2949 static void writeBlockHeader(void* op, size_t cSize, size_t blockSize, U32 lastBlock) { in writeBlockHeader() argument
2950 U32 const cBlockHeader = cSize == 1 ? in writeBlockHeader()
2952 lastBlock + (((U32)bt_compressed)<<1) + (U32)(cSize << 3); in writeBlockHeader()
2954 …DEBUGLOG(3, "writeBlockHeader: cSize: %zu blockSize: %zu lastBlock: %u", cSize, blockSize, lastBlo… in writeBlockHeader()
3416 size_t cSize; in ZSTD_compressSeqStore_singleBlock() local
3452 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, srcSize, lastBlock); in ZSTD_compressSeqStore_singleBlock()
3453 FORWARD_IF_ERROR(cSize, "Nocompress block failed"); in ZSTD_compressSeqStore_singleBlock()
3454 DEBUGLOG(4, "Writing out nocompress block, size: %zu", cSize); in ZSTD_compressSeqStore_singleBlock()
3457 cSize = ZSTD_rleCompressBlock(op, dstCapacity, *ip, srcSize, lastBlock); in ZSTD_compressSeqStore_singleBlock()
3458 FORWARD_IF_ERROR(cSize, "RLE compress block failed"); in ZSTD_compressSeqStore_singleBlock()
3459 DEBUGLOG(4, "Writing out RLE block, size: %zu", cSize); in ZSTD_compressSeqStore_singleBlock()
3464 cSize = ZSTD_blockHeaderSize + cSeqsSize; in ZSTD_compressSeqStore_singleBlock()
3465 DEBUGLOG(4, "Writing out compressed block, size: %zu", cSize); in ZSTD_compressSeqStore_singleBlock()
3471 return cSize; in ZSTD_compressSeqStore_singleBlock()
3556 size_t cSize = 0; in ZSTD_compressBlock_splitBlock_internal() local
3630 cSize += cSizeChunk; in ZSTD_compressBlock_splitBlock_internal()
3638 return cSize; in ZSTD_compressBlock_splitBlock_internal()
3649 size_t cSize; in ZSTD_compressBlock_splitBlock() local
3658 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, srcSize, lastBlock); in ZSTD_compressBlock_splitBlock()
3659 FORWARD_IF_ERROR(cSize, "ZSTD_noCompressBlock failed"); in ZSTD_compressBlock_splitBlock()
3661 return cSize; in ZSTD_compressBlock_splitBlock()
3666cSize = ZSTD_compressBlock_splitBlock_internal(zc, dst, dstCapacity, src, srcSize, lastBlock, nbSe… in ZSTD_compressBlock_splitBlock()
3667 FORWARD_IF_ERROR(cSize, "Splitting blocks failed!"); in ZSTD_compressBlock_splitBlock()
3668 return cSize; in ZSTD_compressBlock_splitBlock()
3681 size_t cSize; in ZSTD_compressBlock_internal() local
3690 if (bss == ZSTDbss_noCompress) { cSize = 0; goto out; } in ZSTD_compressBlock_internal()
3700 cSize = ZSTD_entropyCompressSeqStore(&zc->seqStore, in ZSTD_compressBlock_internal()
3714 cSize < rleMaxLength && in ZSTD_compressBlock_internal()
3717 cSize = 1; in ZSTD_compressBlock_internal()
3722 if (!ZSTD_isError(cSize) && cSize > 1) { in ZSTD_compressBlock_internal()
3732 return cSize; in ZSTD_compressBlock_internal()
3771 … size_t const cSize = ZSTD_compressSuperBlock(zc, dst, dstCapacity, src, srcSize, lastBlock); in ZSTD_compressBlock_targetCBlockSize_body() local
3772 if (cSize != ERROR(dstSize_tooSmall)) { in ZSTD_compressBlock_targetCBlockSize_body()
3774 FORWARD_IF_ERROR(cSize, "ZSTD_compressSuperBlock failed"); in ZSTD_compressBlock_targetCBlockSize_body()
3775 if (cSize != 0 && cSize < maxCSize + ZSTD_blockHeaderSize) { in ZSTD_compressBlock_targetCBlockSize_body()
3777 return cSize; in ZSTD_compressBlock_targetCBlockSize_body()
3795 size_t cSize = 0; in ZSTD_compressBlock_targetCBlockSize() local
3801cSize = ZSTD_compressBlock_targetCBlockSize_body(zc, dst, dstCapacity, src, srcSize, bss, lastBloc… in ZSTD_compressBlock_targetCBlockSize()
3802 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_targetCBlockSize_body failed"); in ZSTD_compressBlock_targetCBlockSize()
3807 return cSize; in ZSTD_compressBlock_targetCBlockSize()
3876 { size_t cSize; in ZSTD_compress_frameChunk() local
3878cSize = ZSTD_compressBlock_targetCBlockSize(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
3879 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_targetCBlockSize failed"); in ZSTD_compress_frameChunk()
3880 assert(cSize > 0); in ZSTD_compress_frameChunk()
3881 assert(cSize <= blockSize + ZSTD_blockHeaderSize); in ZSTD_compress_frameChunk()
3883cSize = ZSTD_compressBlock_splitBlock(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
3884 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_splitBlock failed"); in ZSTD_compress_frameChunk()
3885 assert(cSize > 0 || cctx->seqCollector.collectSequences == 1); in ZSTD_compress_frameChunk()
3887 cSize = ZSTD_compressBlock_internal(cctx, in ZSTD_compress_frameChunk()
3890 FORWARD_IF_ERROR(cSize, "ZSTD_compressBlock_internal failed"); in ZSTD_compress_frameChunk()
3892 if (cSize == 0) { /* block is not compressible */ in ZSTD_compress_frameChunk()
3893 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
3894 FORWARD_IF_ERROR(cSize, "ZSTD_noCompressBlock failed"); in ZSTD_compress_frameChunk()
3896 U32 const cBlockHeader = cSize == 1 ? in ZSTD_compress_frameChunk()
3898 lastBlock + (((U32)bt_compressed)<<1) + (U32)(cSize << 3); in ZSTD_compress_frameChunk()
3900 cSize += ZSTD_blockHeaderSize; in ZSTD_compress_frameChunk()
3908 op += cSize; in ZSTD_compress_frameChunk()
3909 assert(dstCapacity >= cSize); in ZSTD_compress_frameChunk()
3910 dstCapacity -= cSize; in ZSTD_compress_frameChunk()
3913 (unsigned)cSize); in ZSTD_compress_frameChunk()
4061 { size_t const cSize = frame ? in ZSTD_compressContinue_internal() local
4064 …FORWARD_IF_ERROR(cSize, "%s", frame ? "ZSTD_compress_frameChunk failed" : "ZSTD_compressBlock_inte… in ZSTD_compressContinue_internal()
4066 cctx->producedCSize += (cSize + fhSize); in ZSTD_compressContinue_internal()
4077 return cSize + fhSize; in ZSTD_compressContinue_internal()
4545 size_t const cSize = ZSTD_compressContinue_internal(cctx, in ZSTD_compressEnd() local
4548 FORWARD_IF_ERROR(cSize, "ZSTD_compressContinue_internal failed"); in ZSTD_compressEnd()
4549 endResult = ZSTD_writeEpilogue(cctx, (char*)dst + cSize, dstCapacity-cSize); in ZSTD_compressEnd()
4563 return cSize + endResult; in ZSTD_compressEnd()
5248 size_t const cSize = ZSTD_compressEnd(zcs, in ZSTD_compressStream_generic() local
5250 DEBUGLOG(4, "ZSTD_compressEnd : cSize=%u", (unsigned)cSize); in ZSTD_compressStream_generic()
5251 FORWARD_IF_ERROR(cSize, "ZSTD_compressEnd failed"); in ZSTD_compressStream_generic()
5253 op += cSize; in ZSTD_compressStream_generic()
5282 size_t cSize; in ZSTD_compressStream_generic() local
5293 cSize = lastBlock ? in ZSTD_compressStream_generic()
5298 …FORWARD_IF_ERROR(cSize, "%s", lastBlock ? "ZSTD_compressEnd failed" : "ZSTD_compressContinue faile… in ZSTD_compressStream_generic()
5312 cSize = lastBlock ? in ZSTD_compressStream_generic()
5318 …FORWARD_IF_ERROR(cSize, "%s", lastBlock ? "ZSTD_compressEnd failed" : "ZSTD_compressContinue faile… in ZSTD_compressStream_generic()
5324 op += cSize; in ZSTD_compressStream_generic()
5332 zcs->outBuffContentSize = cSize; in ZSTD_compressStream_generic()
5807 size_t cSize = 0; in ZSTD_compressSequences_internal() local
5826 cSize += ZSTD_blockHeaderSize; in ZSTD_compressSequences_internal()
5846 cSize += cBlockSize; in ZSTD_compressSequences_internal()
5897 cSize += cBlockSize; in ZSTD_compressSequences_internal()
5898 DEBUGLOG(4, "cSize running total: %zu", cSize); in ZSTD_compressSequences_internal()
5911 return cSize; in ZSTD_compressSequences_internal()
5919 size_t cSize = 0; in ZSTD_compressSequences() local
5931 cSize += frameHeaderSize; in ZSTD_compressSequences()
5941 cSize += compressedBlocksSize; in ZSTD_compressSequences()
5948 MEM_writeLE32((char*)dst + cSize, checksum); in ZSTD_compressSequences()
5949 cSize += 4; in ZSTD_compressSequences()
5952 DEBUGLOG(3, "Final compressed size: %zu", cSize); in ZSTD_compressSequences()
5953 return cSize; in ZSTD_compressSequences()