diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-18 15:01:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-18 15:01:32 +0200 |
commit | 4f22fde635928735366ab656cd52ba3c6a791161 (patch) | |
tree | 6451f953f76525a3c4182c0a3d20867d20051e5d /thirdparty/zstd/decompress/zstd_decompress_internal.h | |
parent | 2dee231c8e229c93ba0979d8bee9559b571b9462 (diff) | |
parent | 20265879e2d34b1d6e38942173ff08c270284796 (diff) |
Merge pull request #28158 from akien-mga/zstd-1.4.0
zstd: Update to upstream 1.4.0, remove call to experimental API
Diffstat (limited to 'thirdparty/zstd/decompress/zstd_decompress_internal.h')
-rw-r--r-- | thirdparty/zstd/decompress/zstd_decompress_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/thirdparty/zstd/decompress/zstd_decompress_internal.h b/thirdparty/zstd/decompress/zstd_decompress_internal.h index abd0030519..ccbdfa090f 100644 --- a/thirdparty/zstd/decompress/zstd_decompress_internal.h +++ b/thirdparty/zstd/decompress/zstd_decompress_internal.h @@ -89,6 +89,12 @@ typedef enum { ZSTDds_getFrameHeaderSize, ZSTDds_decodeFrameHeader, typedef enum { zdss_init=0, zdss_loadHeader, zdss_read, zdss_load, zdss_flush } ZSTD_dStreamStage; +typedef enum { + ZSTD_use_indefinitely = -1, /* Use the dictionary indefinitely */ + ZSTD_dont_use = 0, /* Do not use the dictionary (if one exists free it) */ + ZSTD_use_once = 1 /* Use the dictionary once and set to ZSTD_dont_use */ +} ZSTD_dictUses_e; + struct ZSTD_DCtx_s { const ZSTD_seqSymbol* LLTptr; @@ -123,6 +129,7 @@ struct ZSTD_DCtx_s const ZSTD_DDict* ddict; /* set by ZSTD_initDStream_usingDDict(), or ZSTD_DCtx_refDDict() */ U32 dictID; int ddictIsCold; /* if == 1 : dictionary is "new" for working context, and presumed "cold" (not in cpu cache) */ + ZSTD_dictUses_e dictUses; /* streaming */ ZSTD_dStreamStage streamStage; |