fixed compilation error in decompression module
This commit is contained in:
@@ -1352,7 +1352,7 @@ ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx,
|
|||||||
const ZSTD_DDict* ddict)
|
const ZSTD_DDict* ddict)
|
||||||
{
|
{
|
||||||
#if defined(ZSTD_LEGACY_SUPPORT) && (ZSTD_LEGACY_SUPPORT==1)
|
#if defined(ZSTD_LEGACY_SUPPORT) && (ZSTD_LEGACY_SUPPORT==1)
|
||||||
if (ZSTD_isLegacy(src, srcSize)) return ZSTD_decompressLegacy(dst, dstCapacity, src, srcSize, ddict->dictContent, ddict->dictContentSize);
|
if (ZSTD_isLegacy(src, srcSize)) return ZSTD_decompressLegacy(dst, dstCapacity, src, srcSize, ddict->dict, ddict->dictSize);
|
||||||
#endif
|
#endif
|
||||||
return ZSTD_decompress_usingPreparedDCtx(dctx, ddict->refContext,
|
return ZSTD_decompress_usingPreparedDCtx(dctx, ddict->refContext,
|
||||||
dst, dstCapacity,
|
dst, dstCapacity,
|
||||||
|
|||||||
@@ -1135,17 +1135,17 @@ __Header__ : 4 bytes ID, value 0xEC30A437, Little Endian format
|
|||||||
|
|
||||||
__Dict_ID__ : 4 bytes, stored in Little Endian format.
|
__Dict_ID__ : 4 bytes, stored in Little Endian format.
|
||||||
DictID can be any value, except 0 (which means no DictID).
|
DictID can be any value, except 0 (which means no DictID).
|
||||||
It's used by decoders to check they use the correct dictionary.
|
It's used by decoders to check if they use the correct dictionary.
|
||||||
|
|
||||||
__Stats__ : Entropy tables, following the same format as a [compressed blocks].
|
__Stats__ : Entropy tables, following the same format as a [compressed blocks].
|
||||||
They are stored in following order :
|
They are stored in following order :
|
||||||
Huffman tables for literals, FSE table for offset,
|
Huffman tables for literals, FSE table for offset,
|
||||||
FSE table for matchLenth, and finally FSE table for litLength.
|
FSE table for matchLenth, and FSE table for litLength.
|
||||||
It's then followed by 3 offset values, populating recent offsets,
|
It's finally followed by 3 offset values, populating recent offsets,
|
||||||
stored in order 4-bytes little endian each, for a total of 12 bytes.
|
stored in order, 4-bytes little endian each, for a total of 12 bytes.
|
||||||
|
|
||||||
__Content__ : Where the actual dictionary content is.
|
__Content__ : Where the actual dictionary content is.
|
||||||
Content depends on Dictionary size.
|
Content size depends on Dictionary size.
|
||||||
|
|
||||||
[compressed blocks]: #compressed-block-format
|
[compressed blocks]: #compressed-block-format
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user