Lines Matching refs:dstCapacity

2103                                 void* dst, size_t dstCapacity,  in ZSTD_entropyCompressSequences_internal()  argument
2119 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSequences_internal()
2139 op, dstCapacity, in ZSTD_entropyCompressSequences_internal()
2144 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSequences_internal()
2294 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSequences() argument
2301 dst, dstCapacity, in ZSTD_entropyCompressSequences()
2307 if ((cSize == ERROR(dstSize_tooSmall)) & (srcSize <= dstCapacity)) in ZSTD_entropyCompressSequences()
2535 const size_t dstCapacity = ZSTD_compressBound(srcSize); in ZSTD_generateSequences() local
2536 void* dst = ZSTD_customMalloc(dstCapacity, ZSTD_defaultCMem); in ZSTD_generateSequences()
2547 ZSTD_compress2(zc, dst, dstCapacity, src, srcSize); in ZSTD_generateSequences()
2613 void* dst, size_t dstCapacity, in ZSTD_compressBlock_internal() argument
2625 (unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, in ZSTD_compressBlock_internal()
2643 dst, dstCapacity, in ZSTD_compressBlock_internal()
2682 void* dst, size_t dstCapacity, in ZSTD_compressBlock_targetCBlockSize_body() argument
2696 return ZSTD_rleCompressBlock(dst, dstCapacity, *(BYTE const*)src, srcSize, lastBlock); in ZSTD_compressBlock_targetCBlockSize_body()
2717 … size_t const cSize = ZSTD_compressSuperBlock(zc, dst, dstCapacity, src, srcSize, lastBlock); in ZSTD_compressBlock_targetCBlockSize_body()
2733 return ZSTD_noCompressBlock(dst, dstCapacity, src, srcSize, lastBlock); in ZSTD_compressBlock_targetCBlockSize_body()
2737 void* dst, size_t dstCapacity, in ZSTD_compressBlock_targetCBlockSize() argument
2744 …(unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, (unsigned)zc->blockSt… in ZSTD_compressBlock_targetCBlockSize()
2747 …cSize = ZSTD_compressBlock_targetCBlockSize_body(zc, dst, dstCapacity, src, srcSize, bss, lastBloc… in ZSTD_compressBlock_targetCBlockSize()
2788 void* dst, size_t dstCapacity, in ZSTD_compress_frameChunk() argument
2809 RETURN_ERROR_IF(dstCapacity < ZSTD_blockHeaderSize + MIN_CBLOCK_SIZE, in ZSTD_compress_frameChunk()
2823 … cSize = ZSTD_compressBlock_targetCBlockSize(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
2829 op+ZSTD_blockHeaderSize, dstCapacity-ZSTD_blockHeaderSize, in ZSTD_compress_frameChunk()
2834 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
2850 assert(dstCapacity >= cSize); in ZSTD_compress_frameChunk()
2851 dstCapacity -= cSize; in ZSTD_compress_frameChunk()
2862 static size_t ZSTD_writeFrameHeader(void* dst, size_t dstCapacity, in ZSTD_writeFrameHeader() argument
2877 RETURN_ERROR_IF(dstCapacity < ZSTD_FRAMEHEADERSIZE_MAX, dstSize_tooSmall, in ZSTD_writeFrameHeader()
2916 size_t ZSTD_writeSkippableFrame(void* dst, size_t dstCapacity, in ZSTD_writeSkippableFrame() argument
2919 RETURN_ERROR_IF(dstCapacity < srcSize + ZSTD_SKIPPABLEHEADERSIZE /* Skippable frame overhead */, in ZSTD_writeSkippableFrame()
2935 size_t ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity) in ZSTD_writeLastEmptyBlock() argument
2937 RETURN_ERROR_IF(dstCapacity < ZSTD_blockHeaderSize, dstSize_tooSmall, in ZSTD_writeLastEmptyBlock()
2962 void* dst, size_t dstCapacity, in ZSTD_compressContinue_internal() argument
2975 fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, &cctx->appliedParams, in ZSTD_compressContinue_internal()
2978 assert(fhSize <= dstCapacity); in ZSTD_compressContinue_internal()
2979 dstCapacity -= fhSize; in ZSTD_compressContinue_internal()
3002 … ZSTD_compress_frameChunk (cctx, dst, dstCapacity, src, srcSize, lastFrameChunk) : in ZSTD_compressContinue_internal()
3003 … ZSTD_compressBlock_internal (cctx, dst, dstCapacity, src, srcSize, 0 /* frame */); in ZSTD_compressContinue_internal()
3022 void* dst, size_t dstCapacity, in ZSTD_compressContinue() argument
3026 …return ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 1 /* frame mode */, 0 … in ZSTD_compressContinue()
3037 size_t ZSTD_compressBlock(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t s… in ZSTD_compressBlock() argument
3043 …return ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 0 /* frame mode */, 0 … in ZSTD_compressBlock()
3411 static size_t ZSTD_writeEpilogue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity) in ZSTD_writeEpilogue() argument
3422 fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, &cctx->appliedParams, 0, 0); in ZSTD_writeEpilogue()
3424 dstCapacity -= fhSize; in ZSTD_writeEpilogue()
3432 RETURN_ERROR_IF(dstCapacity<4, dstSize_tooSmall, "no room for epilogue"); in ZSTD_writeEpilogue()
3435 dstCapacity -= ZSTD_blockHeaderSize; in ZSTD_writeEpilogue()
3440 RETURN_ERROR_IF(dstCapacity<4, dstSize_tooSmall, "no room for checksum"); in ZSTD_writeEpilogue()
3457 void* dst, size_t dstCapacity, in ZSTD_compressEnd() argument
3462 dst, dstCapacity, src, srcSize, in ZSTD_compressEnd()
3465 endResult = ZSTD_writeEpilogue(cctx, (char*)dst + cSize, dstCapacity-cSize); in ZSTD_compressEnd()
3483 void* dst, size_t dstCapacity, in ZSTD_compress_advanced() argument
3493 dst, dstCapacity, in ZSTD_compress_advanced()
3502 void* dst, size_t dstCapacity, in ZSTD_compress_advanced_internal() argument
3511 return ZSTD_compressEnd(cctx, dst, dstCapacity, src, srcSize); in ZSTD_compress_advanced_internal()
3515 void* dst, size_t dstCapacity, in ZSTD_compress_usingDict() argument
3527 …return ZSTD_compress_advanced_internal(cctx, dst, dstCapacity, src, srcSize, dict, dictSize, &cctx… in ZSTD_compress_usingDict()
3531 void* dst, size_t dstCapacity, in ZSTD_compressCCtx() argument
3537 return ZSTD_compress_usingDict(cctx, dst, dstCapacity, src, srcSize, NULL, 0, compressionLevel); in ZSTD_compressCCtx()
3540 size_t ZSTD_compress(void* dst, size_t dstCapacity, in ZSTD_compress() argument
3547 result = ZSTD_compressCCtx(cctx, dst, dstCapacity, src, srcSize, compressionLevel); in ZSTD_compress()
3893 void* dst, size_t dstCapacity, in ZSTD_compress_usingCDict_advanced() argument
3898 return ZSTD_compressEnd(cctx, dst, dstCapacity, src, srcSize); in ZSTD_compress_usingCDict_advanced()
3907 void* dst, size_t dstCapacity, in ZSTD_compress_usingCDict() argument
3912 return ZSTD_compress_usingCDict_advanced(cctx, dst, dstCapacity, src, srcSize, cdict, fParams); in ZSTD_compress_usingCDict()
4390 void* dst, size_t dstCapacity, size_t* dstPos, in ZSTD_compressStream2_simpleArgs() argument
4394 ZSTD_outBuffer output = { dst, dstCapacity, *dstPos }; in ZSTD_compressStream2_simpleArgs()
4404 void* dst, size_t dstCapacity, in ZSTD_compress2() argument
4417 dst, dstCapacity, &oPos, in ZSTD_compress2()
4425 assert(oPos == dstCapacity); in ZSTD_compress2()
4685 void* dst, size_t dstCapacity, in ZSTD_compressSequences_internal() argument
4703 RETURN_ERROR_IF(dstCapacity<4, dstSize_tooSmall, "No room for empty frame block header"); in ZSTD_compressSequences_internal()
4706 dstCapacity -= ZSTD_blockHeaderSize; in ZSTD_compressSequences_internal()
4724 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
4731 dstCapacity -= cBlockSize; in ZSTD_compressSequences_internal()
4738 … op + ZSTD_blockHeaderSize /* Leave space for block header */, dstCapacity - ZSTD_blockHeaderSize, in ZSTD_compressSequences_internal()
4757 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
4761 cBlockSize = ZSTD_rleCompressBlock(op, dstCapacity, *ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
4787 dstCapacity -= cBlockSize; in ZSTD_compressSequences_internal()
4795 size_t ZSTD_compressSequences(ZSTD_CCtx* const cctx, void* dst, size_t dstCapacity, in ZSTD_compressSequences() argument
4808 …frameHeaderSize = ZSTD_writeFrameHeader(op, dstCapacity, &cctx->appliedParams, srcSize, cctx->dict… in ZSTD_compressSequences()
4810 dstCapacity -= frameHeaderSize; in ZSTD_compressSequences()
4817 op, dstCapacity, in ZSTD_compressSequences()
4822 dstCapacity -= compressedBlocksSize; in ZSTD_compressSequences()
4826 RETURN_ERROR_IF(dstCapacity<4, dstSize_tooSmall, "no room for checksum"); in ZSTD_compressSequences()