Path: blob/main/sys/contrib/openzfs/module/zstd/lib/decompress/zstd_ddict.h
48775 views
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only1/*2* Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.3* All rights reserved.4*5* This source code is licensed under both the BSD-style license (found in the6* LICENSE file in the root directory of this source tree) and the GPLv2 (found7* in the COPYING file in the root directory of this source tree).8* You may select, at your option, one of the above-listed licenses.9*/101112#ifndef ZSTD_DDICT_H13#define ZSTD_DDICT_H1415/*-*******************************************************16* Dependencies17*********************************************************/18#include <stddef.h> /* size_t */19#include "../zstd.h" /* ZSTD_DDict, and several public functions */202122/*-*******************************************************23* Interface24*********************************************************/2526/* note: several prototypes are already published in `zstd.h` :27* ZSTD_createDDict()28* ZSTD_createDDict_byReference()29* ZSTD_createDDict_advanced()30* ZSTD_freeDDict()31* ZSTD_initStaticDDict()32* ZSTD_sizeof_DDict()33* ZSTD_estimateDDictSize()34* ZSTD_getDictID_fromDict()35*/3637const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);38size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);3940void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);41424344#endif /* ZSTD_DDICT_H */454647