1 /* 1 /* 2 * Copyright (c) Yann Collet, Facebook, Inc. 2 * Copyright (c) Yann Collet, Facebook, Inc. 3 * All rights reserved. 3 * All rights reserved. 4 * 4 * 5 * This source code is licensed under both the 5 * This source code is licensed under both the BSD-style license (found in the 6 * LICENSE file in the root directory of this 6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 * in the COPYING file in the root directory o 7 * in the COPYING file in the root directory of this source tree). 8 * You may select, at your option, one of the 8 * You may select, at your option, one of the above-listed licenses. 9 */ 9 */ 10 10 11 11 12 #ifndef ZSTD_DDICT_H 12 #ifndef ZSTD_DDICT_H 13 #define ZSTD_DDICT_H 13 #define ZSTD_DDICT_H 14 14 15 /*-******************************************* 15 /*-******************************************************* 16 * Dependencies 16 * Dependencies 17 ********************************************* 17 *********************************************************/ 18 #include "../common/zstd_deps.h" /* size_t * 18 #include "../common/zstd_deps.h" /* size_t */ 19 #include <linux/zstd.h> /* ZSTD_DDict, and 19 #include <linux/zstd.h> /* ZSTD_DDict, and several public functions */ 20 20 21 21 22 /*-******************************************* 22 /*-******************************************************* 23 * Interface 23 * Interface 24 ********************************************* 24 *********************************************************/ 25 25 26 /* note: several prototypes are already publis 26 /* note: several prototypes are already published in `zstd.h` : 27 * ZSTD_createDDict() 27 * ZSTD_createDDict() 28 * ZSTD_createDDict_byReference() 28 * ZSTD_createDDict_byReference() 29 * ZSTD_createDDict_advanced() 29 * ZSTD_createDDict_advanced() 30 * ZSTD_freeDDict() 30 * ZSTD_freeDDict() 31 * ZSTD_initStaticDDict() 31 * ZSTD_initStaticDDict() 32 * ZSTD_sizeof_DDict() 32 * ZSTD_sizeof_DDict() 33 * ZSTD_estimateDDictSize() 33 * ZSTD_estimateDDictSize() 34 * ZSTD_getDictID_fromDict() 34 * ZSTD_getDictID_fromDict() 35 */ 35 */ 36 36 37 const void* ZSTD_DDict_dictContent(const ZSTD_ 37 const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict); 38 size_t ZSTD_DDict_dictSize(const ZSTD_DDict* d 38 size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict); 39 39 40 void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, 40 void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 41 41 42 42 43 43 44 #endif /* ZSTD_DDICT_H */ 44 #endif /* ZSTD_DDICT_H */ 45 45
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.