2018-10-24 00:25:49 +00:00
|
|
|
/*
|
2020-03-26 22:19:05 +00:00
|
|
|
* Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
|
2018-10-24 00:25:49 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2018-10-24 00:55:23 +00:00
|
|
|
|
|
|
|
#ifndef ZSTD_DDICT_H
|
|
|
|
#define ZSTD_DDICT_H
|
|
|
|
|
|
|
|
/*-*******************************************************
|
2018-10-24 00:25:49 +00:00
|
|
|
* Dependencies
|
|
|
|
*********************************************************/
|
2020-08-07 03:18:05 +00:00
|
|
|
#include "../common/zstd_deps.h" /* size_t */
|
2020-05-01 20:07:57 +00:00
|
|
|
#include "../zstd.h" /* ZSTD_DDict, and several public functions */
|
2018-10-24 00:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*-*******************************************************
|
2018-10-24 00:55:23 +00:00
|
|
|
* Interface
|
|
|
|
*********************************************************/
|
2018-10-24 00:25:49 +00:00
|
|
|
|
2018-10-24 23:50:03 +00:00
|
|
|
/* 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()
|
|
|
|
*/
|
|
|
|
|
2018-10-24 00:25:49 +00:00
|
|
|
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);
|
2018-10-24 00:55:23 +00:00
|
|
|
|
|
|
|
|
2018-10-24 23:50:03 +00:00
|
|
|
|
2018-10-24 00:55:23 +00:00
|
|
|
#endif /* ZSTD_DDICT_H */
|