kjdev / php-ext-zstd

Zstd Extension for PHP
MIT License
206 stars 28 forks source link

Add a function or constant that gets maxLevel #15

Closed xywf221 closed 5 years ago

xywf221 commented 5 years ago

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 5 years ago

9ff70771c05dd0ff7730abe35f3282d1ee815976

Added 3 constants.

xywf221 commented 5 years ago

@kjdev thank you for your update