xref: /freebsd/sys/contrib/zstd/lib/compress/zstd_lazy.h (revision 0c16b53773565120a8f80a31a0af2ef56ccd368e)
1*0c16b537SWarner Losh /*
2*0c16b537SWarner Losh  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
3*0c16b537SWarner Losh  * All rights reserved.
4*0c16b537SWarner Losh  *
5*0c16b537SWarner Losh  * This source code is licensed under both the BSD-style license (found in the
6*0c16b537SWarner Losh  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7*0c16b537SWarner Losh  * in the COPYING file in the root directory of this source tree).
8*0c16b537SWarner Losh  * You may select, at your option, one of the above-listed licenses.
9*0c16b537SWarner Losh  */
10*0c16b537SWarner Losh 
11*0c16b537SWarner Losh #ifndef ZSTD_LAZY_H
12*0c16b537SWarner Losh #define ZSTD_LAZY_H
13*0c16b537SWarner Losh 
14*0c16b537SWarner Losh #include "zstd_compress.h"
15*0c16b537SWarner Losh 
16*0c16b537SWarner Losh #if defined (__cplusplus)
17*0c16b537SWarner Losh extern "C" {
18*0c16b537SWarner Losh #endif
19*0c16b537SWarner Losh 
20*0c16b537SWarner Losh U32 ZSTD_insertAndFindFirstIndex (ZSTD_CCtx* zc, const BYTE* ip, U32 mls);
21*0c16b537SWarner Losh void ZSTD_updateTree(ZSTD_CCtx* zc, const BYTE* const ip, const BYTE* const iend, const U32 nbCompares, const U32 mls);
22*0c16b537SWarner Losh void ZSTD_updateTree_extDict(ZSTD_CCtx* zc, const BYTE* const ip, const BYTE* const iend, const U32 nbCompares, const U32 mls);
23*0c16b537SWarner Losh 
24*0c16b537SWarner Losh size_t ZSTD_compressBlock_btlazy2(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
25*0c16b537SWarner Losh size_t ZSTD_compressBlock_lazy2(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
26*0c16b537SWarner Losh size_t ZSTD_compressBlock_lazy(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
27*0c16b537SWarner Losh size_t ZSTD_compressBlock_greedy(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
28*0c16b537SWarner Losh 
29*0c16b537SWarner Losh size_t ZSTD_compressBlock_greedy_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
30*0c16b537SWarner Losh size_t ZSTD_compressBlock_lazy_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
31*0c16b537SWarner Losh size_t ZSTD_compressBlock_lazy2_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
32*0c16b537SWarner Losh size_t ZSTD_compressBlock_btlazy2_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
33*0c16b537SWarner Losh 
34*0c16b537SWarner Losh #if defined (__cplusplus)
35*0c16b537SWarner Losh }
36*0c16b537SWarner Losh #endif
37*0c16b537SWarner Losh 
38*0c16b537SWarner Losh #endif /* ZSTD_LAZY_H */
39