Lines Matching refs:dict

941                                   const void* dict, size_t dictSize,  in ZSTD_decompressMultiFrame()  argument
948 assert(dict==NULL || ddict==NULL); /* either dict or ddict set, not both */ in ZSTD_decompressMultiFrame()
951 dict = ZSTD_DDict_dictContent(ddict); in ZSTD_decompressMultiFrame()
977 FORWARD_IF_ERROR(ZSTD_decompressBegin_usingDict(dctx, dict, dictSize), ""); in ZSTD_decompressMultiFrame()
1011 const void* dict, size_t dictSize) in ZSTD_decompress_usingDict() argument
1013 return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, dict, dictSize, NULL); in ZSTD_decompress_usingDict()
1270 static size_t ZSTD_refDictContent(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) in ZSTD_refDictContent() argument
1273 …dctx->virtualStart = (const char*)dict - ((const char*)(dctx->previousDstEnd) - (const char*)(dctx… in ZSTD_refDictContent()
1274 dctx->prefixStart = dict; in ZSTD_refDictContent()
1275 dctx->previousDstEnd = (const char*)dict + dictSize; in ZSTD_refDictContent()
1288 const void* const dict, size_t const dictSize) in ZSTD_loadDEntropy() argument
1290 const BYTE* dictPtr = (const BYTE*)dict; in ZSTD_loadDEntropy()
1294 assert(MEM_readLE32(dict) == ZSTD_MAGIC_DICTIONARY); /* dict must be valid */ in ZSTD_loadDEntropy()
1371 return (size_t)(dictPtr - (const BYTE*)dict); in ZSTD_loadDEntropy()
1374 static size_t ZSTD_decompress_insertDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) in ZSTD_decompress_insertDictionary() argument
1376 if (dictSize < 8) return ZSTD_refDictContent(dctx, dict, dictSize); in ZSTD_decompress_insertDictionary()
1377 { U32 const magic = MEM_readLE32(dict); in ZSTD_decompress_insertDictionary()
1379 return ZSTD_refDictContent(dctx, dict, dictSize); /* pure content mode */ in ZSTD_decompress_insertDictionary()
1381 dctx->dictID = MEM_readLE32((const char*)dict + ZSTD_FRAMEIDSIZE); in ZSTD_decompress_insertDictionary()
1384 { size_t const eSize = ZSTD_loadDEntropy(&dctx->entropy, dict, dictSize); in ZSTD_decompress_insertDictionary()
1386 dict = (const char*)dict + eSize; in ZSTD_decompress_insertDictionary()
1392 return ZSTD_refDictContent(dctx, dict, dictSize); in ZSTD_decompress_insertDictionary()
1419 size_t ZSTD_decompressBegin_usingDict(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) in ZSTD_decompressBegin_usingDict() argument
1422 if (dict && dictSize) in ZSTD_decompressBegin_usingDict()
1424 ZSTD_isError(ZSTD_decompress_insertDictionary(dctx, dict, dictSize)), in ZSTD_decompressBegin_usingDict()
1455 unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize) in ZSTD_getDictID_fromDict() argument
1458 if (MEM_readLE32(dict) != ZSTD_MAGIC_DICTIONARY) return 0; in ZSTD_getDictID_fromDict()
1459 return MEM_readLE32((const char*)dict + ZSTD_FRAMEIDSIZE); in ZSTD_getDictID_fromDict()
1531 const void* dict, size_t dictSize, in ZSTD_DCtx_loadDictionary_advanced() argument
1537 if (dict && dictSize != 0) { in ZSTD_DCtx_loadDictionary_advanced()
1538 …dctx->ddictLocal = ZSTD_createDDict_advanced(dict, dictSize, dictLoadMethod, dictContentType, dctx… in ZSTD_DCtx_loadDictionary_advanced()
1546 size_t ZSTD_DCtx_loadDictionary_byReference(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) in ZSTD_DCtx_loadDictionary_byReference() argument
1548 return ZSTD_DCtx_loadDictionary_advanced(dctx, dict, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto); in ZSTD_DCtx_loadDictionary_byReference()
1551 size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) in ZSTD_DCtx_loadDictionary() argument
1553 return ZSTD_DCtx_loadDictionary_advanced(dctx, dict, dictSize, ZSTD_dlm_byCopy, ZSTD_dct_auto); in ZSTD_DCtx_loadDictionary()
1572 size_t ZSTD_initDStream_usingDict(ZSTD_DStream* zds, const void* dict, size_t dictSize) in ZSTD_initDStream_usingDict() argument
1576 FORWARD_IF_ERROR( ZSTD_DCtx_loadDictionary(zds, dict, dictSize) , ""); in ZSTD_initDStream_usingDict()