Path: blob/master/Utilities/cmzstd/lib/decompress/zstd_ddict.h
3158 views
/*1* Copyright (c) Meta Platforms, Inc. and affiliates.2* All rights reserved.3*4* This source code is licensed under both the BSD-style license (found in the5* LICENSE file in the root directory of this source tree) and the GPLv2 (found6* in the COPYING file in the root directory of this source tree).7* You may select, at your option, one of the above-listed licenses.8*/91011#ifndef ZSTD_DDICT_H12#define ZSTD_DDICT_H1314/*-*******************************************************15* Dependencies16*********************************************************/17#include "../common/zstd_deps.h" /* size_t */18#include "../zstd.h" /* ZSTD_DDict, and several public functions */192021/*-*******************************************************22* Interface23*********************************************************/2425/* note: several prototypes are already published in `zstd.h` :26* ZSTD_createDDict()27* ZSTD_createDDict_byReference()28* ZSTD_createDDict_advanced()29* ZSTD_freeDDict()30* ZSTD_initStaticDDict()31* ZSTD_sizeof_DDict()32* ZSTD_estimateDDictSize()33* ZSTD_getDictID_fromDict()34*/3536const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);37size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);3839void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);40414243#endif /* ZSTD_DDICT_H */444546