Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

zstd_decompress_block.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (c) 2016-2020, 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_DEC_BLOCK_H
  11. #define ZSTD_DEC_BLOCK_H
  12. /*-*******************************************************
  13. * Dependencies
  14. *********************************************************/
  15. #include <stddef.h> /* size_t */
  16. #include "zstd.h" /* DCtx, and some public functions */
  17. #include "zstd_internal.h" /* blockProperties_t, and some public functions */
  18. #include "zstd_decompress_internal.h" /* ZSTD_seqSymbol */
  19. /* === Prototypes === */
  20. /* note: prototypes already published within `zstd.h` :
  21. * ZSTD_decompressBlock()
  22. */
  23. /* note: prototypes already published within `zstd_internal.h` :
  24. * ZSTD_getcBlockSize()
  25. * ZSTD_decodeSeqHeaders()
  26. */
  27. /* ZSTD_decompressBlock_internal() :
  28. * decompress block, starting at `src`,
  29. * into destination buffer `dst`.
  30. * @return : decompressed block size,
  31. * or an error code (which can be tested using ZSTD_isError())
  32. */
  33. size_t ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx,
  34. void* dst, size_t dstCapacity,
  35. const void* src, size_t srcSize, const int frame);
  36. /* ZSTD_buildFSETable() :
  37. * generate FSE decoding table for one symbol (ll, ml or off)
  38. * this function must be called with valid parameters only
  39. * (dt is large enough, normalizedCounter distribution total is a power of 2, max is within range, etc.)
  40. * in which case it cannot fail.
  41. * Internal use only.
  42. */
  43. void ZSTD_buildFSETable(ZSTD_seqSymbol* dt,
  44. const short* normalizedCounter, unsigned maxSymbolValue,
  45. const U32* baseValue, const U32* nbAdditionalBits,
  46. unsigned tableLog);
  47. #endif /* ZSTD_DEC_BLOCK_H */