137f1f268SConrad Meyer /* 2*5ff13fbcSAllan Jude * Copyright (c) Yann Collet, Facebook, Inc. 337f1f268SConrad Meyer * All rights reserved. 437f1f268SConrad Meyer * 537f1f268SConrad Meyer * This source code is licensed under both the BSD-style license (found in the 637f1f268SConrad Meyer * LICENSE file in the root directory of this source tree) and the GPLv2 (found 737f1f268SConrad Meyer * in the COPYING file in the root directory of this source tree). 837f1f268SConrad Meyer * You may select, at your option, one of the above-listed licenses. 937f1f268SConrad Meyer */ 1037f1f268SConrad Meyer 1137f1f268SConrad Meyer #ifndef ZSTD_COMPRESS_ADVANCED_H 1237f1f268SConrad Meyer #define ZSTD_COMPRESS_ADVANCED_H 1337f1f268SConrad Meyer 1437f1f268SConrad Meyer /*-************************************* 1537f1f268SConrad Meyer * Dependencies 1637f1f268SConrad Meyer ***************************************/ 1737f1f268SConrad Meyer 1837f1f268SConrad Meyer #include "../zstd.h" /* ZSTD_CCtx */ 1937f1f268SConrad Meyer 2037f1f268SConrad Meyer /*-************************************* 2137f1f268SConrad Meyer * Target Compressed Block Size 2237f1f268SConrad Meyer ***************************************/ 2337f1f268SConrad Meyer 2437f1f268SConrad Meyer /* ZSTD_compressSuperBlock() : 2537f1f268SConrad Meyer * Used to compress a super block when targetCBlockSize is being used. 2637f1f268SConrad Meyer * The given block will be compressed into multiple sub blocks that are around targetCBlockSize. */ 2737f1f268SConrad Meyer size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc, 2837f1f268SConrad Meyer void* dst, size_t dstCapacity, 2937f1f268SConrad Meyer void const* src, size_t srcSize, 3037f1f268SConrad Meyer unsigned lastBlock); 3137f1f268SConrad Meyer 3237f1f268SConrad Meyer #endif /* ZSTD_COMPRESS_ADVANCED_H */ 33