ddict             459 include/linux/zstd.h 	const ZSTD_DDict *ddict);
ddict             710 include/linux/zstd.h 	const ZSTD_DDict *ddict, void *workspace, size_t workspaceSize);
ddict             907 include/linux/zstd.h unsigned int ZSTD_getDictID_fromDDict(const ZSTD_DDict *ddict);
ddict             161 lib/zstd/decompress.c static void ZSTD_refDDict(ZSTD_DCtx *dstDCtx, const ZSTD_DDict *ddict);
ddict            1640 lib/zstd/decompress.c static const void *ZSTD_DDictDictContent(const ZSTD_DDict *ddict);
ddict            1641 lib/zstd/decompress.c static size_t ZSTD_DDictDictSize(const ZSTD_DDict *ddict);
ddict            1644 lib/zstd/decompress.c 					const ZSTD_DDict *ddict)
ddict            1648 lib/zstd/decompress.c 	if (ddict) {
ddict            1654 lib/zstd/decompress.c 		dict = ZSTD_DDictDictContent(ddict);
ddict            1655 lib/zstd/decompress.c 		dictSize = ZSTD_DDictDictSize(ddict);
ddict            1680 lib/zstd/decompress.c 		if (ddict) {
ddict            1682 lib/zstd/decompress.c 			ZSTD_refDDict(dctx, ddict);
ddict            1991 lib/zstd/decompress.c static const void *ZSTD_DDictDictContent(const ZSTD_DDict *ddict) { return ddict->dictContent; }
ddict            1993 lib/zstd/decompress.c static size_t ZSTD_DDictDictSize(const ZSTD_DDict *ddict) { return ddict->dictSize; }
ddict            1995 lib/zstd/decompress.c static void ZSTD_refDDict(ZSTD_DCtx *dstDCtx, const ZSTD_DDict *ddict)
ddict            1998 lib/zstd/decompress.c 	if (ddict) {		       /* support refDDict on NULL */
ddict            1999 lib/zstd/decompress.c 		dstDCtx->dictID = ddict->dictID;
ddict            2000 lib/zstd/decompress.c 		dstDCtx->base = ddict->dictContent;
ddict            2001 lib/zstd/decompress.c 		dstDCtx->vBase = ddict->dictContent;
ddict            2002 lib/zstd/decompress.c 		dstDCtx->dictEnd = (const BYTE *)ddict->dictContent + ddict->dictSize;
ddict            2004 lib/zstd/decompress.c 		if (ddict->entropyPresent) {
ddict            2007 lib/zstd/decompress.c 			dstDCtx->LLTptr = ddict->entropy.LLTable;
ddict            2008 lib/zstd/decompress.c 			dstDCtx->MLTptr = ddict->entropy.MLTable;
ddict            2009 lib/zstd/decompress.c 			dstDCtx->OFTptr = ddict->entropy.OFTable;
ddict            2010 lib/zstd/decompress.c 			dstDCtx->HUFptr = ddict->entropy.hufTable;
ddict            2011 lib/zstd/decompress.c 			dstDCtx->entropy.rep[0] = ddict->entropy.rep[0];
ddict            2012 lib/zstd/decompress.c 			dstDCtx->entropy.rep[1] = ddict->entropy.rep[1];
ddict            2013 lib/zstd/decompress.c 			dstDCtx->entropy.rep[2] = ddict->entropy.rep[2];
ddict            2021 lib/zstd/decompress.c static size_t ZSTD_loadEntropy_inDDict(ZSTD_DDict *ddict)
ddict            2023 lib/zstd/decompress.c 	ddict->dictID = 0;
ddict            2024 lib/zstd/decompress.c 	ddict->entropyPresent = 0;
ddict            2025 lib/zstd/decompress.c 	if (ddict->dictSize < 8)
ddict            2028 lib/zstd/decompress.c 		U32 const magic = ZSTD_readLE32(ddict->dictContent);
ddict            2032 lib/zstd/decompress.c 	ddict->dictID = ZSTD_readLE32((const char *)ddict->dictContent + 4);
ddict            2035 lib/zstd/decompress.c 	CHECK_E(ZSTD_loadEntropy(&ddict->entropy, ddict->dictContent, ddict->dictSize), dictionary_corrupted);
ddict            2036 lib/zstd/decompress.c 	ddict->entropyPresent = 1;
ddict            2046 lib/zstd/decompress.c 		ZSTD_DDict *const ddict = (ZSTD_DDict *)ZSTD_malloc(sizeof(ZSTD_DDict), customMem);
ddict            2047 lib/zstd/decompress.c 		if (!ddict)
ddict            2049 lib/zstd/decompress.c 		ddict->cMem = customMem;
ddict            2052 lib/zstd/decompress.c 			ddict->dictBuffer = NULL;
ddict            2053 lib/zstd/decompress.c 			ddict->dictContent = dict;
ddict            2057 lib/zstd/decompress.c 				ZSTD_freeDDict(ddict);
ddict            2061 lib/zstd/decompress.c 			ddict->dictBuffer = internalBuffer;
ddict            2062 lib/zstd/decompress.c 			ddict->dictContent = internalBuffer;
ddict            2064 lib/zstd/decompress.c 		ddict->dictSize = dictSize;
ddict            2065 lib/zstd/decompress.c 		ddict->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endian */
ddict            2068 lib/zstd/decompress.c 			size_t const errorCode = ZSTD_loadEntropy_inDDict(ddict);
ddict            2070 lib/zstd/decompress.c 				ZSTD_freeDDict(ddict);
ddict            2075 lib/zstd/decompress.c 		return ddict;
ddict            2089 lib/zstd/decompress.c size_t ZSTD_freeDDict(ZSTD_DDict *ddict)
ddict            2091 lib/zstd/decompress.c 	if (ddict == NULL)
ddict            2094 lib/zstd/decompress.c 		ZSTD_customMem const cMem = ddict->cMem;
ddict            2095 lib/zstd/decompress.c 		ZSTD_free(ddict->dictBuffer, cMem);
ddict            2096 lib/zstd/decompress.c 		ZSTD_free(ddict, cMem);
ddict            2118 lib/zstd/decompress.c unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict *ddict)
ddict            2120 lib/zstd/decompress.c 	if (ddict == NULL)
ddict            2122 lib/zstd/decompress.c 	return ZSTD_getDictID_fromDict(ddict->dictContent, ddict->dictSize);
ddict            2147 lib/zstd/decompress.c size_t ZSTD_decompress_usingDDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_DDict *ddict)
ddict            2150 lib/zstd/decompress.c 	return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, NULL, 0, ddict);
ddict            2163 lib/zstd/decompress.c 	const ZSTD_DDict *ddict;
ddict            2227 lib/zstd/decompress.c 	zds->ddict = zds->ddictLocal;
ddict            2247 lib/zstd/decompress.c ZSTD_DStream *ZSTD_initDStream_usingDDict(size_t maxWindowSize, const ZSTD_DDict *ddict, void *workspace, size_t workspaceSize)
ddict            2251 lib/zstd/decompress.c 		zds->ddict = ddict;
ddict            2338 lib/zstd/decompress.c 					size_t const decompressedSize = ZSTD_decompress_usingDDict(zds->dctx, op, oend - op, istart, cSize, zds->ddict);
ddict            2351 lib/zstd/decompress.c 			ZSTD_refDDict(zds->dctx, zds->ddict);