Lines Matching refs:dict
154 static size_t ZSTD_sizeof_localDict(ZSTD_localDict dict) in ZSTD_sizeof_localDict() argument
156 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict()
157 size_t const cdictSize = ZSTD_sizeof_CDict(dict.cdict); in ZSTD_sizeof_localDict()
1034 if (dl->dict == NULL) { in ZSTD_initLocalDict()
1048 assert(cctx->prefixDict.dict == NULL); in ZSTD_initLocalDict()
1051 dl->dict, in ZSTD_initLocalDict()
1063 ZSTD_CCtx* cctx, const void* dict, size_t dictSize, in ZSTD_CCtx_loadDictionary_advanced() argument
1070 if (dict == NULL || dictSize == 0) /* no dictionary mode */ in ZSTD_CCtx_loadDictionary_advanced()
1073 cctx->localDict.dict = dict; in ZSTD_CCtx_loadDictionary_advanced()
1080 ZSTD_memcpy(dictBuffer, dict, dictSize); in ZSTD_CCtx_loadDictionary_advanced()
1082 cctx->localDict.dict = dictBuffer; in ZSTD_CCtx_loadDictionary_advanced()
1090 ZSTD_CCtx* cctx, const void* dict, size_t dictSize) in ZSTD_CCtx_loadDictionary_byReference() argument
1093 cctx, dict, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto); in ZSTD_CCtx_loadDictionary_byReference()
1096 size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize) in ZSTD_CCtx_loadDictionary() argument
1099 cctx, dict, dictSize, ZSTD_dlm_byCopy, ZSTD_dct_auto); in ZSTD_CCtx_loadDictionary()
1133 cctx->prefixDict.dict = prefix; in ZSTD_CCtx_refPrefix_advanced()
4224 const void* const dict, size_t dictSize) in ZSTD_loadCEntropy() argument
4228 const BYTE* dictPtr = (const BYTE*)dict; /* skip magic num and dict ID */ in ZSTD_loadCEntropy()
4312 return dictPtr - (const BYTE*)dict; in ZSTD_loadCEntropy()
4328 const void* dict, size_t dictSize, in ZSTD_loadZstdDictionary() argument
4332 const BYTE* dictPtr = (const BYTE*)dict; in ZSTD_loadZstdDictionary()
4341 eSize = ZSTD_loadCEntropy(bs, workspace, dict, dictSize); in ZSTD_loadZstdDictionary()
4361 const void* dict, size_t dictSize, in ZSTD_compress_insertDictionary() argument
4367 if ((dict==NULL) || (dictSize<8)) { in ZSTD_compress_insertDictionary()
4376 return ZSTD_loadDictionaryContent(ms, ls, ws, params, dict, dictSize, dtlm); in ZSTD_compress_insertDictionary()
4378 if (MEM_readLE32(dict) != ZSTD_MAGIC_DICTIONARY) { in ZSTD_compress_insertDictionary()
4382 ms, ls, ws, params, dict, dictSize, dtlm); in ZSTD_compress_insertDictionary()
4390 bs, ms, ws, params, dict, dictSize, dtlm, workspace); in ZSTD_compress_insertDictionary()
4399 const void* dict, size_t dictSize, in ZSTD_compressBegin_internal() argument
4410 assert(!((dict) && (cdict))); /* either dict or cdict, not both */ in ZSTD_compressBegin_internal()
4432 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal()
4443 const void* dict, size_t dictSize, in ZSTD_compressBegin_advanced_internal() argument
4454 dict, dictSize, dictContentType, dtlm, in ZSTD_compressBegin_advanced_internal()
4463 const void* dict, size_t dictSize, in ZSTD_compressBegin_advanced() argument
4469 dict, dictSize, ZSTD_dct_auto, ZSTD_dtlm_fast, in ZSTD_compressBegin_advanced()
4474 size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compres… in ZSTD_compressBegin_usingDict() argument
4482 return ZSTD_compressBegin_internal(cctx, dict, dictSize, ZSTD_dct_auto, ZSTD_dtlm_fast, NULL, in ZSTD_compressBegin_usingDict()
4569 const void* dict,size_t dictSize, in ZSTD_compress_advanced() argument
4578 dict, dictSize, in ZSTD_compress_advanced()
4587 const void* dict,size_t dictSize, in ZSTD_compress_advanced_internal() argument
4592 dict, dictSize, ZSTD_dct_auto, ZSTD_dtlm_fast, NULL, in ZSTD_compress_advanced_internal()
4600 const void* dict, size_t dictSize, in ZSTD_compress_usingDict() argument
4604 …ZSTD_parameters const params = ZSTD_getParams_internal(compressionLevel, srcSize, dict ? dictSize … in ZSTD_compress_usingDict()
4609 …return ZSTD_compress_advanced_internal(cctx, dst, dstCapacity, src, srcSize, dict, dictSize, &cctx… in ZSTD_compress_usingDict()
4776 const void* dict, size_t dictSize, in ZSTD_createCDict_advanced2() argument
4817 dict, dictSize, in ZSTD_createCDict_advanced2()
4827 ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict() argument
4830 ZSTD_CDict* const cdict = ZSTD_createCDict_advanced(dict, dictSize, in ZSTD_createCDict()
4838 ZSTD_CDict* ZSTD_createCDict_byReference(const void* dict, size_t dictSize, int compressionLevel) in ZSTD_createCDict_byReference() argument
4841 ZSTD_CDict* const cdict = ZSTD_createCDict_advanced(dict, dictSize, in ZSTD_createCDict_byReference()
4877 const void* dict, size_t dictSize, in ZSTD_initStaticCDict() argument
4913 dict, dictSize, in ZSTD_initStaticCDict()
5099 const void* dict, size_t dictSize, const ZSTD_CDict* cdict, in ZSTD_initCStream_internal() argument
5108 assert(!((dict) && (cdict))); /* either dict or cdict, not both */ in ZSTD_initCStream_internal()
5109 if (dict) { in ZSTD_initCStream_internal()
5110 FORWARD_IF_ERROR( ZSTD_CCtx_loadDictionary(zcs, dict, dictSize) , ""); in ZSTD_initCStream_internal()
5148 const void* dict, size_t dictSize, in ZSTD_initCStream_advanced() argument
5161 FORWARD_IF_ERROR( ZSTD_CCtx_loadDictionary(zcs, dict, dictSize) , ""); in ZSTD_initCStream_advanced()
5165 size_t ZSTD_initCStream_usingDict(ZSTD_CStream* zcs, const void* dict, size_t dictSize, int compres… in ZSTD_initCStream_usingDict() argument
5170 FORWARD_IF_ERROR( ZSTD_CCtx_loadDictionary(zcs, dict, dictSize) , ""); in ZSTD_initCStream_usingDict()
5433 assert(prefixDict.dict==NULL || cctx->cdict==NULL); /* only one can be set */ in ZSTD_CCtx_init_compressStream2()
5444 size_t const dictSize = prefixDict.dict in ZSTD_CCtx_init_compressStream2()
5460 prefixDict.dict, prefixDict.dictSize, prefixDict.dictContentType, ZSTD_dtlm_fast, in ZSTD_CCtx_init_compressStream2()
5614 } else if (cctx->prefixDict.dict) { in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5680 } else if (cctx->prefixDict.dict) { in ZSTD_copySequencesToSeqStoreNoBlockDelim()