zpool/zfs: restore -V & --version options
[zfs.git] / module / zstd / lib / compress / zstd_compress_superblock.h
blob07f4cb1dc646966b00debf0d4eb2c45550d9d907
1 /*
2 * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
3 * All rights reserved.
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
11 #ifndef ZSTD_COMPRESS_ADVANCED_H
12 #define ZSTD_COMPRESS_ADVANCED_H
14 /*-*************************************
15 * Dependencies
16 ***************************************/
18 #include "../zstd.h" /* ZSTD_CCtx */
20 /*-*************************************
21 * Target Compressed Block Size
22 ***************************************/
24 /* ZSTD_compressSuperBlock() :
25 * Used to compress a super block when targetCBlockSize is being used.
26 * The given block will be compressed into multiple sub blocks that are around targetCBlockSize. */
27 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc,
28 void* dst, size_t dstCapacity,
29 void const* src, size_t srcSize,
30 unsigned lastBlock);
32 #endif /* ZSTD_COMPRESS_ADVANCED_H */