Add ZSTD_getDictID_fromCDict function to experimental section

This commit is contained in:
Luke Pitt
2020-11-04 11:37:37 +00:00
parent f54109c589
commit eac309c71b
4 changed files with 24 additions and 0 deletions
+1
View File
@@ -1911,6 +1911,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
cParams, ZSTD_defaultCMem);
assert(cdict != NULL);
DISPLAYLEVEL(3, "(size : %u) : ", (unsigned)ZSTD_sizeof_CDict(cdict));
assert(ZSTD_getDictID_fromDict(dictBuffer, dictSize) == ZSTD_getDictID_fromCDict(cdict));
cSize = ZSTD_compress_usingCDict(cctx, compressedBuffer, compressedBufferSize,
CNBuffer, CNBuffSize, cdict);
ZSTD_freeCDict(cdict);