/freebsd/sys/contrib/zstd/examples/ |
H A D | dictionary_compression.c | 18 static ZSTD_CDict* createCDict_orDie(const char* dictFileName, int cLevel) in createCDict_orDie() 23 ZSTD_CDict* const cdict = ZSTD_createCDict(dictBuffer, dictSize, cLevel); in createCDict_orDie() 30 static void compress(const char* fname, const char* oname, const ZSTD_CDict* cdict) in compress() 84 ZSTD_CDict* const dictPtr = createCDict_orDie(dictName, cLevel); in main()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/ |
H A D | zstd.h | 813 typedef struct ZSTD_CDict_s ZSTD_CDict; typedef 827 ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 832 ZSTDLIB_API size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 842 const ZSTD_CDict* cdict); 935 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 1014 ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 1353 ZSTDLIB_API const ZSTD_CDict* ZSTD_initStaticCDict( 1382 ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced(const void* dict, size_t dictSize, 1405 ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_byReference(const void* dictBuffer, size_t dictSize, int c… 1447 const ZSTD_CDict* cdict, [all …]
|
/freebsd/sys/contrib/zstd/lib/ |
H A D | zstd.h | 844 typedef struct ZSTD_CDict_s ZSTD_CDict; typedef 858 ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 864 ZSTDLIB_API size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 874 const ZSTD_CDict* cdict); 912 ZSTDLIB_API unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 974 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 1060 ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 1566 ZSTDLIB_STATIC_API const ZSTD_CDict* ZSTD_initStaticCDict( 1599 ZSTDLIB_STATIC_API ZSTD_CDict* ZSTD_createCDict_advanced(const void* dict, size_t dictSize, 1624 ZSTDLIB_STATIC_API ZSTD_CDict* ZSTD_createCDict_advanced2( [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 931 size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict) in ZSTD_CCtx_refCDict() 1616 static int ZSTD_shouldAttachDict(const ZSTD_CDict* cdict, in ZSTD_shouldAttachDict() 1631 const ZSTD_CDict* cdict, in ZSTD_resetCCtx_byAttachingCDict() 1679 const ZSTD_CDict* cdict, in ZSTD_resetCCtx_byCopyingCDict() 1743 const ZSTD_CDict* cdict, in ZSTD_resetCCtx_usingCDict() 3085 const ZSTD_CDict* cdict, in ZSTD_compressBegin_internal() 3126 const ZSTD_CDict* cdict, in ZSTD_compressBegin_advanced_internal() 3328 DEBUGLOG(5, "sizeof(ZSTD_CDict) : %u", (unsigned)sizeof(ZSTD_CDict)); in ZSTD_estimateCDictSize_advanced() 3329 return ZSTD_cwksp_alloc_size(sizeof(ZSTD_CDict)) in ZSTD_estimateCDictSize_advanced() 3342 size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict) in ZSTD_sizeof_CDict() [all …]
|
H A D | zstd_compress_internal.h | 63 ZSTD_CDict* cdict; 278 const ZSTD_CDict* cdict; 1073 const ZSTD_CDict* cdict, 1080 ZSTD_compressionParameters ZSTD_getCParamsFromCDict(const ZSTD_CDict* cdict); 1088 const ZSTD_CDict* cdict,
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 1172 size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict) in ZSTD_CCtx_refCDict() 2025 static int ZSTD_shouldAttachDict(const ZSTD_CDict* cdict, in ZSTD_shouldAttachDict() 2042 const ZSTD_CDict* cdict, in ZSTD_resetCCtx_byAttachingCDict() 2102 const ZSTD_CDict* cdict, in ZSTD_resetCCtx_byCopyingCDict() 2184 const ZSTD_CDict* cdict, in ZSTD_resetCCtx_usingCDict() 4493 const ZSTD_CDict* cdict, in ZSTD_compressBegin_internal() 4540 const ZSTD_CDict* cdict, in ZSTD_compressBegin_advanced_internal() 4762 DEBUGLOG(5, "sizeof(ZSTD_CDict) : %u", (unsigned)sizeof(ZSTD_CDict)); in ZSTD_estimateCDictSize_advanced() 4763 return ZSTD_cwksp_alloc_size(sizeof(ZSTD_CDict)) in ZSTD_estimateCDictSize_advanced() 4779 size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict) in ZSTD_sizeof_CDict() [all …]
|
H A D | zstdmt_compress.h | 74 const ZSTD_CDict* cdict,
|
H A D | zstd_compress_internal.h | 62 ZSTD_CDict* cdict; 417 const ZSTD_CDict* cdict; 1401 const ZSTD_CDict* cdict, 1408 ZSTD_compressionParameters ZSTD_getCParamsFromCDict(const ZSTD_CDict* cdict); 1416 const ZSTD_CDict* cdict,
|
H A D | zstdmt_compress.c | 653 const ZSTD_CDict* cdict; /* set by mtctx, then read by worker => no barrier */ 857 ZSTD_CDict* cdictLocal; 858 const ZSTD_CDict* cdict; 1220 const ZSTD_CDict* cdict, ZSTD_CCtx_params params, in ZSTDMT_initCStream_internal()
|
/freebsd/sys/contrib/zstd/lib/dictBuilder/ |
H A D | cover.c | 803 ZSTD_CDict *cdict; in COVER_checkTotalCompressedSize()
|
H A D | zdict.c | 632 ZSTD_CDict* dict; /* dictionary */
|
/freebsd/sys/contrib/zstd/zlibWrapper/examples/ |
H A D | zwrapbench.c | 238 …ZSTD_CDict* const cdict = ZSTD_createCDict_advanced(dictBuffer, dictBufferSize, ZSTD_dlm_byRef, ZS… in BMK_benchMem()
|
/freebsd/sys/contrib/zstd/ |
H A D | CONTRIBUTING.md | 445 Example : `ZSTD_CCtx`, `ZSTD_CDict`
|
H A D | CHANGELOG | 217 misc: Improved documentation : ZSTD_CLEVEL, DYNAMIC_BMI2, ZSTD_CDict, function deprecation, zstd fo…
|