kjdev/php-ext-zstd

Add a function or constant that gets maxLevel

Closed this issue · 2 comments

Hello @kjdev I encountered a problem when I used the zstd_compress function. I don't know how to enter the value of the level. I read the source code and found that the level should be filled with level > maxLevel but maxLevel is obtained by ZSTD_maxCLevel. Can you add a new function or constant to get the value of maxLevel?

kjdev commented

9ff7077

  • ZSTD_COMPRESS_LEVEL_MIN
  • ZSTD_COMPRESS_LEVEL_MAX
  • ZSTD_COMPRESS_LEVEL_DEFAULT

Added 3 constants.

@kjdev thank you for your update