summaryrefslogtreecommitdiffstats
path: root/Utilities/cmzstd/lib/decompress/zstd_ddict.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-13 14:46:32 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-13 14:46:32 (GMT)
commitf92b4b52ebb335ce540966d7f198df3878f6f46f (patch)
tree4fe887bedbdff138072bfa6e0d1217b0756b2155 /Utilities/cmzstd/lib/decompress/zstd_ddict.h
parent9337cbfccab0b7a0984b837d71ff59543acb574d (diff)
parentfbaf65639ada9f3dc58337bf86c1cc036bc1694f (diff)
downloadCMake-f92b4b52ebb335ce540966d7f198df3878f6f46f.zip
CMake-f92b4b52ebb335ce540966d7f198df3878f6f46f.tar.gz
CMake-f92b4b52ebb335ce540966d7f198df3878f6f46f.tar.bz2
Merge branch 'upstream-zstd' into import-zstd
* upstream-zstd: zstd 2018-12-27 (470344d3)
Diffstat (limited to 'Utilities/cmzstd/lib/decompress/zstd_ddict.h')
-rw-r--r--Utilities/cmzstd/lib/decompress/zstd_ddict.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/Utilities/cmzstd/lib/decompress/zstd_ddict.h b/Utilities/cmzstd/lib/decompress/zstd_ddict.h
new file mode 100644
index 0000000..0479d11
--- /dev/null
+++ b/Utilities/cmzstd/lib/decompress/zstd_ddict.h
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under both the BSD-style license (found in the
+ * LICENSE file in the root directory of this source tree) and the GPLv2 (found
+ * in the COPYING file in the root directory of this source tree).
+ * You may select, at your option, one of the above-listed licenses.
+ */
+
+
+#ifndef ZSTD_DDICT_H
+#define ZSTD_DDICT_H
+
+/*-*******************************************************
+ * Dependencies
+ *********************************************************/
+#include <stddef.h> /* size_t */
+#include "zstd.h" /* ZSTD_DDict, and several public functions */
+
+
+/*-*******************************************************
+ * Interface
+ *********************************************************/
+
+/* note: several prototypes are already published in `zstd.h` :
+ * ZSTD_createDDict()
+ * ZSTD_createDDict_byReference()
+ * ZSTD_createDDict_advanced()
+ * ZSTD_freeDDict()
+ * ZSTD_initStaticDDict()
+ * ZSTD_sizeof_DDict()
+ * ZSTD_estimateDDictSize()
+ * ZSTD_getDictID_fromDict()
+ */
+
+const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);
+size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);
+
+void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);
+
+
+
+#endif /* ZSTD_DDICT_H */