Lines Matching refs:dict

2626 static size_t ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)  in ZSTD_loadZstdDictionary()  argument
2628 const BYTE *dictPtr = (const BYTE *)dict; 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()
2729 if ((ZSTD_readLE32(dict) != ZSTD_DICT_MAGIC) || (cctx->forceRawDict)) 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
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
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()
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()