summaryrefslogtreecommitdiff
path: root/thirdparty/zstd/decompress/zstd_decompress_internal.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-04-18 11:53:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-04-18 12:39:11 +0200
commit88cb9bd27f05f6622b4c8205d2811e4aad74d6e3 (patch)
tree12faaaa31169709cecf0daea0d63fa122592c09a /thirdparty/zstd/decompress/zstd_decompress_internal.h
parent6697fd9a05859914fc320b4b4321fd9fb6170f71 (diff)
zstd: Update to upstream 1.4.0
One step towards fixing #17374 as most experimental APIs we use are now part of the stable 1.4.0.
Diffstat (limited to 'thirdparty/zstd/decompress/zstd_decompress_internal.h')
-rw-r--r--thirdparty/zstd/decompress/zstd_decompress_internal.h7
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;