Lines Matching refs:dictSize
180 …rs ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize) in ZSTD_adjustCParams() argument
182 if (srcSize + dictSize == 0) in ZSTD_adjustCParams()
188 U64 const rSize = srcSize + dictSize + minSrcSize; in ZSTD_adjustCParams()
2626 static size_t ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) in ZSTD_loadZstdDictionary() argument
2629 const BYTE *const dictEnd = dictPtr + dictSize; in ZSTD_loadZstdDictionary()
2723 static size_t ZSTD_compress_insertDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) in ZSTD_compress_insertDictionary() argument
2725 if ((dict == NULL) || (dictSize <= 8)) in ZSTD_compress_insertDictionary()
2730 return ZSTD_loadDictionaryContent(cctx, dict, dictSize); in ZSTD_compress_insertDictionary()
2733 return ZSTD_loadZstdDictionary(cctx, dict, dictSize); in ZSTD_compress_insertDictionary()
2738 static size_t ZSTD_compressBegin_internal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_… in ZSTD_compressBegin_internal() argument
2740 ZSTD_compResetPolicy_e const crp = dictSize ? ZSTDcrp_fullReset : ZSTDcrp_continue; in ZSTD_compressBegin_internal()
2742 return ZSTD_compress_insertDictionary(cctx, dict, dictSize); in ZSTD_compressBegin_internal()
2747 size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_paramet… in ZSTD_compressBegin_advanced() argument
2751 return ZSTD_compressBegin_internal(cctx, dict, dictSize, params, pledgedSrcSize); in ZSTD_compressBegin_advanced()
2754 size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, int compres… in ZSTD_compressBegin_usingDict() argument
2756 ZSTD_parameters const params = ZSTD_getParams(compressionLevel, 0, dictSize); in ZSTD_compressBegin_usingDict()
2757 return ZSTD_compressBegin_internal(cctx, dict, dictSize, params, 0); in ZSTD_compressBegin_usingDict()
2818 … void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, in ZSTD_compress_internal() argument
2821 CHECK_F(ZSTD_compressBegin_internal(cctx, dict, dictSize, params, srcSize)); in ZSTD_compress_internal()
2825 … void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, in ZSTD_compress_usingDict() argument
2828 return ZSTD_compress_internal(ctx, dst, dstCapacity, src, srcSize, dict, dictSize, params); in ZSTD_compress_usingDict()
2847 static ZSTD_CDict *ZSTD_createCDict_advanced(const void *dictBuffer, size_t dictSize, unsigned byRe… in ZSTD_createCDict_advanced() argument
2862 if ((byReference) || (!dictBuffer) || (!dictSize)) { in ZSTD_createCDict_advanced()
2866 void *const internalBuffer = ZSTD_malloc(dictSize, customMem); in ZSTD_createCDict_advanced()
2872 memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_createCDict_advanced()
2878 …size_t const errorCode = ZSTD_compressBegin_advanced(cctx, cdict->dictContent, dictSize, params, 0… in ZSTD_createCDict_advanced()
2888 cdict->dictContentSize = dictSize; in ZSTD_createCDict_advanced()
2893 ZSTD_CDict *ZSTD_initCDict(const void *dict, size_t dictSize, ZSTD_parameters params, void *workspa… in ZSTD_initCDict() argument
2896 return ZSTD_createCDict_advanced(dict, dictSize, 1, params, stackMem); in ZSTD_initCDict()
3055 static size_t ZSTD_initCStream_advanced(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_… in ZSTD_initCStream_advanced() argument
3077 if (dict && dictSize >= 8) { in ZSTD_initCStream_advanced()
3079 zcs->cdictLocal = ZSTD_createCDict_advanced(dict, dictSize, 0, params, zcs->customMem); in ZSTD_initCStream_advanced()
3411 …essionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSize, size_t dictSize) in ZSTD_getCParams() argument
3415 U64 const rSize = srcSize + dictSize ? srcSize + dictSize + addedSize : (U64)-1; in ZSTD_getCParams()
3430 cp = ZSTD_adjustCParams(cp, srcSize, dictSize); in ZSTD_getCParams()
3437 ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long srcSize, size_t dictSize) in ZSTD_getParams() argument
3440 ZSTD_compressionParameters const cParams = ZSTD_getCParams(compressionLevel, srcSize, dictSize); in ZSTD_getParams()