mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only
 | 
						|
/*
 | 
						|
 * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
 | 
						|
 * 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.
 | 
						|
 */
 | 
						|
 | 
						|
 | 
						|
#ifndef ZSTD_DDICT_H
 | 
						|
#define ZSTD_DDICT_H
 | 
						|
 | 
						|
/*-*******************************************************
 | 
						|
 *  Dependencies
 | 
						|
 *********************************************************/
 | 
						|
#include <stddef.h>   /* size_t */
 | 
						|
#include "../zstd.h"     /* ZSTD_DDict, and several public functions */
 | 
						|
 | 
						|
 | 
						|
/*-*******************************************************
 | 
						|
 *  Interface
 | 
						|
 *********************************************************/
 | 
						|
 | 
						|
/* 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()
 | 
						|
 */
 | 
						|
 | 
						|
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);
 | 
						|
 | 
						|
 | 
						|
 | 
						|
#endif /* ZSTD_DDICT_H */
 |