Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/cmzstd/lib/compress/zstd_compress_superblock.h
3158 views
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
* All rights reserved.
4
*
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
*/
10
11
#ifndef ZSTD_COMPRESS_ADVANCED_H
12
#define ZSTD_COMPRESS_ADVANCED_H
13
14
/*-*************************************
15
* Dependencies
16
***************************************/
17
18
#include "../zstd.h" /* ZSTD_CCtx */
19
20
/*-*************************************
21
* Target Compressed Block Size
22
***************************************/
23
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);
31
32
#endif /* ZSTD_COMPRESS_ADVANCED_H */
33
34