Path: blob/master/Utilities/cmzstd/lib/compress/zstd_opt.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*/910#ifndef ZSTD_OPT_H11#define ZSTD_OPT_H1213#if defined (__cplusplus)14extern "C" {15#endif1617#include "zstd_compress_internal.h"1819/* used in ZSTD_loadDictionaryContent() */20void ZSTD_updateTree(ZSTD_matchState_t* ms, const BYTE* ip, const BYTE* iend);2122size_t ZSTD_compressBlock_btopt(23ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],24void const* src, size_t srcSize);25size_t ZSTD_compressBlock_btultra(26ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],27void const* src, size_t srcSize);28size_t ZSTD_compressBlock_btultra2(29ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],30void const* src, size_t srcSize);313233size_t ZSTD_compressBlock_btopt_dictMatchState(34ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],35void const* src, size_t srcSize);36size_t ZSTD_compressBlock_btultra_dictMatchState(37ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],38void const* src, size_t srcSize);3940size_t ZSTD_compressBlock_btopt_extDict(41ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],42void const* src, size_t srcSize);43size_t ZSTD_compressBlock_btultra_extDict(44ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],45void const* src, size_t srcSize);4647/* note : no btultra2 variant for extDict nor dictMatchState,48* because btultra2 is not meant to work with dictionaries49* and is only specific for the first block (no prefix) */5051#if defined (__cplusplus)52}53#endif5455#endif /* ZSTD_OPT_H */565758