You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zstd_compress_superblock.h 1.1KB

1234567891011121314151617181920212223242526272829303132
  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. #ifndef ZSTD_COMPRESS_ADVANCED_H
  11. #define ZSTD_COMPRESS_ADVANCED_H
  12. /*-*************************************
  13. * Dependencies
  14. ***************************************/
  15. #include "zstd.h" /* ZSTD_CCtx */
  16. /*-*************************************
  17. * Target Compressed Block Size
  18. ***************************************/
  19. /* ZSTD_compressSuperBlock() :
  20. * Used to compress a super block when targetCBlockSize is being used.
  21. * The given block will be compressed into multiple sub blocks that are around targetCBlockSize. */
  22. size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc,
  23. void* dst, size_t dstCapacity,
  24. void const* src, size_t srcSize,
  25. unsigned lastBlock);
  26. #endif /* ZSTD_COMPRESS_ADVANCED_H */