Lines Matching refs:pledgedSrcSize
1009 size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize) in ZSTD_CCtx_setPledgedSrcSize() argument
1011 DEBUGLOG(4, "ZSTD_CCtx_setPledgedSrcSize to %u bytes", (U32)pledgedSrcSize); in ZSTD_CCtx_setPledgedSrcSize()
1014 cctx->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_CCtx_setPledgedSrcSize()
1396 const U64 pledgedSrcSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal() argument
1398 size_t const windowSize = (size_t) BOUNDED(1ULL, 1ULL << cParams->windowLog, pledgedSrcSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1750 U64 const pledgedSrcSize, in ZSTD_resetCCtx_internal() argument
1757 …(U32)pledgedSrcSize, params->cParams.windowLog, (int)params->useRowMatchFinder, (int)params->useBl… in ZSTD_resetCCtx_internal()
1778 …ze_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params->cParams.windowLog), pledgedSrcSize)); in ZSTD_resetCCtx_internal()
1798 buffInSize, buffOutSize, pledgedSrcSize); in ZSTD_resetCCtx_internal()
1841 zc->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_resetCCtx_internal()
1844 if (pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN) in ZSTD_resetCCtx_internal()
1847 (unsigned)pledgedSrcSize, zc->appliedParams.fParams.contentSizeFlag); in ZSTD_resetCCtx_internal()
1948 U64 pledgedSrcSize) in ZSTD_shouldAttachDict() argument
1953 || ( ( pledgedSrcSize <= cutoff in ZSTD_shouldAttachDict()
1954 || pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN in ZSTD_shouldAttachDict()
1965 U64 pledgedSrcSize, in ZSTD_resetCCtx_byAttachingCDict() argument
1969 (unsigned long long)pledgedSrcSize); in ZSTD_resetCCtx_byAttachingCDict()
1982 params.cParams = ZSTD_adjustCParams_internal(adjusted_cdict_cParams, pledgedSrcSize, in ZSTD_resetCCtx_byAttachingCDict()
1986 FORWARD_IF_ERROR(ZSTD_resetCCtx_internal(cctx, ¶ms, pledgedSrcSize, in ZSTD_resetCCtx_byAttachingCDict()
2025 U64 pledgedSrcSize, in ZSTD_resetCCtx_byCopyingCDict() argument
2032 (unsigned long long)pledgedSrcSize); in ZSTD_resetCCtx_byCopyingCDict()
2040 FORWARD_IF_ERROR(ZSTD_resetCCtx_internal(cctx, ¶ms, pledgedSrcSize, in ZSTD_resetCCtx_byCopyingCDict()
2107 U64 pledgedSrcSize, in ZSTD_resetCCtx_usingCDict() argument
2112 (unsigned)pledgedSrcSize); in ZSTD_resetCCtx_usingCDict()
2114 if (ZSTD_shouldAttachDict(cdict, params, pledgedSrcSize)) { in ZSTD_resetCCtx_usingCDict()
2116 cctx, cdict, *params, pledgedSrcSize, zbuff); in ZSTD_resetCCtx_usingCDict()
2119 cctx, cdict, *params, pledgedSrcSize, zbuff); in ZSTD_resetCCtx_usingCDict()
2133 U64 pledgedSrcSize, in ZSTD_copyCCtx_internal() argument
2150 ZSTD_resetCCtx_internal(dstCCtx, ¶ms, pledgedSrcSize, in ZSTD_copyCCtx_internal()
2207 …ze_t ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, unsigned long long pledgedSrcSize) in ZSTD_copyCCtx() argument
2212 if (pledgedSrcSize==0) pledgedSrcSize = ZSTD_CONTENTSIZE_UNKNOWN; in ZSTD_copyCCtx()
2213 fParams.contentSizeFlag = (pledgedSrcSize != ZSTD_CONTENTSIZE_UNKNOWN); in ZSTD_copyCCtx()
2216 fParams, pledgedSrcSize, in ZSTD_copyCCtx()
3922 const ZSTD_CCtx_params* params, U64 pledgedSrcSize, U32 dictID) in ZSTD_writeFrameHeader() argument
3928 U32 const singleSegment = params->fParams.contentSizeFlag && (windowSize >= pledgedSrcSize); in ZSTD_writeFrameHeader()
3931 …(pledgedSrcSize>=256) + (pledgedSrcSize>=65536+256) + (pledgedSrcSize>=0xFFFFFFFFU) : 0; /* 0-3 */ in ZSTD_writeFrameHeader()
3935 assert(!(params->fParams.contentSizeFlag && pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN)); in ZSTD_writeFrameHeader()
3961 case 0 : if (singleSegment) op[pos++] = (BYTE)(pledgedSrcSize); break; in ZSTD_writeFrameHeader()
3962 case 1 : MEM_writeLE16(op+pos, (U16)(pledgedSrcSize-256)); pos+=2; break; in ZSTD_writeFrameHeader()
3963 case 2 : MEM_writeLE32(op+pos, (U32)(pledgedSrcSize)); pos+=4; break; in ZSTD_writeFrameHeader()
3964 case 3 : MEM_writeLE64(op+pos, (U64)(pledgedSrcSize)); pos+=8; break; in ZSTD_writeFrameHeader()
4403 const ZSTD_CCtx_params* params, U64 pledgedSrcSize, in ZSTD_compressBegin_internal() argument
4413 && ( pledgedSrcSize < ZSTD_USE_CDICT_PARAMS_SRCSIZE_CUTOFF in ZSTD_compressBegin_internal()
4414 || pledgedSrcSize < cdict->dictContentSize * ZSTD_USE_CDICT_PARAMS_DICTSIZE_MULTIPLIER in ZSTD_compressBegin_internal()
4415 || pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN in ZSTD_compressBegin_internal()
4418 return ZSTD_resetCCtx_usingCDict(cctx, cdict, params, pledgedSrcSize, zbuff); in ZSTD_compressBegin_internal()
4421 FORWARD_IF_ERROR( ZSTD_resetCCtx_internal(cctx, params, pledgedSrcSize, in ZSTD_compressBegin_internal()
4448 unsigned long long pledgedSrcSize) in ZSTD_compressBegin_advanced_internal() argument
4456 params, pledgedSrcSize, in ZSTD_compressBegin_advanced_internal()
4464 ZSTD_parameters params, unsigned long long pledgedSrcSize) in ZSTD_compressBegin_advanced() argument
4471 &cctxParams, pledgedSrcSize); in ZSTD_compressBegin_advanced()
4940 ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize) in ZSTD_compressBegin_usingCDict_internal() argument
4949 params.cParams = ( pledgedSrcSize < ZSTD_USE_CDICT_PARAMS_SRCSIZE_CUTOFF in ZSTD_compressBegin_usingCDict_internal()
4950 … || pledgedSrcSize < cdict->dictContentSize * ZSTD_USE_CDICT_PARAMS_DICTSIZE_MULTIPLIER in ZSTD_compressBegin_usingCDict_internal()
4951 || pledgedSrcSize == ZSTD_CONTENTSIZE_UNKNOWN in ZSTD_compressBegin_usingCDict_internal()
4955 pledgedSrcSize, in ZSTD_compressBegin_usingCDict_internal()
4963 if (pledgedSrcSize != ZSTD_CONTENTSIZE_UNKNOWN) { in ZSTD_compressBegin_usingCDict_internal()
4964 U32 const limitedSrcSize = (U32)MIN(pledgedSrcSize, 1U << 19); in ZSTD_compressBegin_usingCDict_internal()
4971 &cctxParams, pledgedSrcSize, in ZSTD_compressBegin_usingCDict_internal()
4981 ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize) in ZSTD_compressBegin_usingCDict_advanced() argument
4983 return ZSTD_compressBegin_usingCDict_internal(cctx, cdict, fParams, pledgedSrcSize); in ZSTD_compressBegin_usingCDict_advanced()
5069 …e_e ZSTD_getCParamMode(ZSTD_CDict const* cdict, ZSTD_CCtx_params const* params, U64 pledgedSrcSize) in ZSTD_getCParamMode() argument
5071 if (cdict != NULL && ZSTD_shouldAttachDict(cdict, params, pledgedSrcSize)) in ZSTD_getCParamMode()
5085 U64 const pledgedSrcSize = (pss==0) ? ZSTD_CONTENTSIZE_UNKNOWN : pss; in ZSTD_resetCStream() local
5086 DEBUGLOG(4, "ZSTD_resetCStream: pledgedSrcSize = %u", (unsigned)pledgedSrcSize); in ZSTD_resetCStream()
5088 FORWARD_IF_ERROR( ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize) , ""); in ZSTD_resetCStream()
5099 unsigned long long pledgedSrcSize) in ZSTD_initCStream_internal() argument
5103 FORWARD_IF_ERROR( ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize) , ""); in ZSTD_initCStream_internal()
5121 unsigned long long pledgedSrcSize) in ZSTD_initCStream_usingCDict_advanced() argument
5125 FORWARD_IF_ERROR( ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize) , ""); in ZSTD_initCStream_usingCDict_advanced()
5153 …U64 const pledgedSrcSize = (pss==0 && params.fParams.contentSizeFlag==0) ? ZSTD_CONTENTSIZE_UNKNOW… in ZSTD_initCStream_advanced() local
5156 FORWARD_IF_ERROR( ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize) , ""); in ZSTD_initCStream_advanced()
5178 U64 const pledgedSrcSize = (pss==0) ? ZSTD_CONTENTSIZE_UNKNOWN : pss; in ZSTD_initCStream_srcSize() local
5183 FORWARD_IF_ERROR( ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize) , ""); in ZSTD_initCStream_srcSize()
5455 { U64 const pledgedSrcSize = cctx->pledgedSrcSizePlusOne - 1; in ZSTD_CCtx_init_compressStream2() local
5460 ¶ms, pledgedSrcSize, in ZSTD_CCtx_init_compressStream2()
5469 cctx->inBuffTarget = cctx->blockSize + (cctx->blockSize == pledgedSrcSize); in ZSTD_CCtx_init_compressStream2()