cdict 407 include/linux/zstd.h const void *src, size_t srcSize, const ZSTD_CDict *cdict); cdict 571 include/linux/zstd.h ZSTD_CStream *ZSTD_initCStream_usingCDict(const ZSTD_CDict *cdict, cdict 1013 include/linux/zstd.h size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict, cdict 2853 lib/zstd/compress.c ZSTD_CDict *const cdict = (ZSTD_CDict *)ZSTD_malloc(sizeof(ZSTD_CDict), customMem); cdict 2856 lib/zstd/compress.c if (!cdict || !cctx) { cdict 2857 lib/zstd/compress.c ZSTD_free(cdict, customMem); cdict 2863 lib/zstd/compress.c cdict->dictBuffer = NULL; cdict 2864 lib/zstd/compress.c cdict->dictContent = dictBuffer; cdict 2869 lib/zstd/compress.c ZSTD_free(cdict, customMem); cdict 2873 lib/zstd/compress.c cdict->dictBuffer = internalBuffer; cdict 2874 lib/zstd/compress.c cdict->dictContent = internalBuffer; cdict 2878 lib/zstd/compress.c size_t const errorCode = ZSTD_compressBegin_advanced(cctx, cdict->dictContent, dictSize, params, 0); cdict 2880 lib/zstd/compress.c ZSTD_free(cdict->dictBuffer, customMem); cdict 2881 lib/zstd/compress.c ZSTD_free(cdict, customMem); cdict 2887 lib/zstd/compress.c cdict->refContext = cctx; cdict 2888 lib/zstd/compress.c cdict->dictContentSize = dictSize; cdict 2889 lib/zstd/compress.c return cdict; cdict 2899 lib/zstd/compress.c size_t ZSTD_freeCDict(ZSTD_CDict *cdict) cdict 2901 lib/zstd/compress.c if (cdict == NULL) cdict 2904 lib/zstd/compress.c ZSTD_customMem const cMem = cdict->refContext->customMem; cdict 2905 lib/zstd/compress.c ZSTD_freeCCtx(cdict->refContext); cdict 2906 lib/zstd/compress.c ZSTD_free(cdict->dictBuffer, cMem); cdict 2907 lib/zstd/compress.c ZSTD_free(cdict, cMem); cdict 2912 lib/zstd/compress.c static ZSTD_parameters ZSTD_getParamsFromCDict(const ZSTD_CDict *cdict) { return ZSTD_getParamsFromCCtx(cdict->refContext); } cdict 2914 lib/zstd/compress.c size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict, unsigned long long pledgedSrcSize) cdict 2916 lib/zstd/compress.c if (cdict->dictContentSize) cdict 2917 lib/zstd/compress.c CHECK_F(ZSTD_copyCCtx(cctx, cdict->refContext, pledgedSrcSize)) cdict 2919 lib/zstd/compress.c ZSTD_parameters params = cdict->refContext->params; cdict 2930 lib/zstd/compress.c size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict) cdict 2932 lib/zstd/compress.c CHECK_F(ZSTD_compressBegin_usingCDict(cctx, cdict, srcSize)); cdict 2934 lib/zstd/compress.c if (cdict->refContext->params.fParams.contentSizeFlag == 1) { cdict 2953 lib/zstd/compress.c const ZSTD_CDict *cdict; cdict 3031 lib/zstd/compress.c if (zcs->cdict) cdict 3032 lib/zstd/compress.c CHECK_F(ZSTD_compressBegin_usingCDict(zcs->cctx, zcs->cdict, pledgedSrcSize)) cdict 3082 lib/zstd/compress.c zcs->cdict = zcs->cdictLocal; cdict 3084 lib/zstd/compress.c zcs->cdict = NULL; cdict 3105 lib/zstd/compress.c ZSTD_CStream *ZSTD_initCStream_usingCDict(const ZSTD_CDict *cdict, unsigned long long pledgedSrcSize, void *workspace, size_t workspaceSize) cdict 3107 lib/zstd/compress.c ZSTD_parameters const params = ZSTD_getParamsFromCDict(cdict); cdict 3110 lib/zstd/compress.c zcs->cdict = cdict; cdict 258 lib/zstd/zstd_internal.h size_t ZSTD_freeCDict(ZSTD_CDict *cdict); cdict 259 lib/zstd/zstd_internal.h size_t ZSTD_freeDDict(ZSTD_DDict *cdict);