xref: /aosp_15_r20/external/zstd/lib/compress/zstd_compress_superblock.h (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1*01826a49SYabin Cui /*
2*01826a49SYabin Cui  * Copyright (c) Meta Platforms, Inc. and affiliates.
3*01826a49SYabin Cui  * All rights reserved.
4*01826a49SYabin Cui  *
5*01826a49SYabin Cui  * This source code is licensed under both the BSD-style license (found in the
6*01826a49SYabin Cui  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7*01826a49SYabin Cui  * in the COPYING file in the root directory of this source tree).
8*01826a49SYabin Cui  * You may select, at your option, one of the above-listed licenses.
9*01826a49SYabin Cui  */
10*01826a49SYabin Cui 
11*01826a49SYabin Cui #ifndef ZSTD_COMPRESS_ADVANCED_H
12*01826a49SYabin Cui #define ZSTD_COMPRESS_ADVANCED_H
13*01826a49SYabin Cui 
14*01826a49SYabin Cui /*-*************************************
15*01826a49SYabin Cui *  Dependencies
16*01826a49SYabin Cui ***************************************/
17*01826a49SYabin Cui 
18*01826a49SYabin Cui #include "../zstd.h" /* ZSTD_CCtx */
19*01826a49SYabin Cui 
20*01826a49SYabin Cui /*-*************************************
21*01826a49SYabin Cui *  Target Compressed Block Size
22*01826a49SYabin Cui ***************************************/
23*01826a49SYabin Cui 
24*01826a49SYabin Cui /* ZSTD_compressSuperBlock() :
25*01826a49SYabin Cui  * Used to compress a super block when targetCBlockSize is being used.
26*01826a49SYabin Cui  * The given block will be compressed into multiple sub blocks that are around targetCBlockSize. */
27*01826a49SYabin Cui size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc,
28*01826a49SYabin Cui                                void* dst, size_t dstCapacity,
29*01826a49SYabin Cui                                void const* src, size_t srcSize,
30*01826a49SYabin Cui                                unsigned lastBlock);
31*01826a49SYabin Cui 
32*01826a49SYabin Cui #endif /* ZSTD_COMPRESS_ADVANCED_H */
33