zstd_ddict.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_DDICT_H
  12. #define ZSTD_DDICT_H
  13. /*-*******************************************************
  14. * Dependencies
  15. *********************************************************/
  16. #include "../common/zstd_deps.h" /* size_t */
  17. #include <linux/zstd.h> /* ZSTD_DDict, and several public functions */
  18. /*-*******************************************************
  19. * Interface
  20. *********************************************************/
  21. /* note: several prototypes are already published in `zstd.h` :
  22. * ZSTD_createDDict()
  23. * ZSTD_createDDict_byReference()
  24. * ZSTD_createDDict_advanced()
  25. * ZSTD_freeDDict()
  26. * ZSTD_initStaticDDict()
  27. * ZSTD_sizeof_DDict()
  28. * ZSTD_estimateDDictSize()
  29. * ZSTD_getDictID_fromDict()
  30. */
  31. const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);
  32. size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);
  33. void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);
  34. #endif /* ZSTD_DDICT_H */