zstd_ddict.h 1.3 KB

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