zstd_compress_superblock.h 1.2 KB

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