Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/openzfs/module/zstd/lib/decompress/zstd_ddict.h
48775 views
1
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only
2
/*
3
* Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
4
* All rights reserved.
5
*
6
* This source code is licensed under both the BSD-style license (found in the
7
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
8
* in the COPYING file in the root directory of this source tree).
9
* You may select, at your option, one of the above-listed licenses.
10
*/
11
12
13
#ifndef ZSTD_DDICT_H
14
#define ZSTD_DDICT_H
15
16
/*-*******************************************************
17
* Dependencies
18
*********************************************************/
19
#include <stddef.h> /* size_t */
20
#include "../zstd.h" /* ZSTD_DDict, and several public functions */
21
22
23
/*-*******************************************************
24
* Interface
25
*********************************************************/
26
27
/* note: several prototypes are already published in `zstd.h` :
28
* ZSTD_createDDict()
29
* ZSTD_createDDict_byReference()
30
* ZSTD_createDDict_advanced()
31
* ZSTD_freeDDict()
32
* ZSTD_initStaticDDict()
33
* ZSTD_sizeof_DDict()
34
* ZSTD_estimateDDictSize()
35
* ZSTD_getDictID_fromDict()
36
*/
37
38
const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);
39
size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);
40
41
void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);
42
43
44
45
#endif /* ZSTD_DDICT_H */
46
47