FILE
zstd_ddict.h
File preview with syntax highlighting.
linux-6.19.14/lib/zstd/decompress/zstd_ddict.h
1/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ 2/* 3 * Copyright (c) Meta Platforms, Inc. and affiliates. 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 "../common/zstd_deps.h" /* size_t */ 20#include <linux/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 38const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict); 39size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict); 40 41void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 42 43 44 45#endif /* ZSTD_DDICT_H */
~/
Read-only file preview.