Path: blob/master/Utilities/cmzstd/lib/compress/zstd_compress_superblock.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_COMPRESS_ADVANCED_H11#define ZSTD_COMPRESS_ADVANCED_H1213/*-*************************************14* Dependencies15***************************************/1617#include "../zstd.h" /* ZSTD_CCtx */1819/*-*************************************20* Target Compressed Block Size21***************************************/2223/* ZSTD_compressSuperBlock() :24* Used to compress a super block when targetCBlockSize is being used.25* The given block will be compressed into multiple sub blocks that are around targetCBlockSize. */26size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc,27void* dst, size_t dstCapacity,28void const* src, size_t srcSize,29unsigned lastBlock);3031#endif /* ZSTD_COMPRESS_ADVANCED_H */323334