File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -750,6 +750,34 @@ The most important options are:
750750* ` ZSTD_c_compressionLevel `
751751 * Set compression parameters according to pre-defined cLevel table. Default
752752 level is ZSTD\_ CLEVEL\_ DEFAULT==3.
753+ * ` ZSTD_c_strategy `
754+ * Select the compression strategy.
755+ * Possible values are listed in the strategy options section below.
756+
757+ #### Strategy options
758+
759+ The following constants can be used as values for the ` ZSTD_c_strategy `
760+ parameter:
761+
762+ * ` zlib.constants.ZSTD_fast `
763+ * ` zlib.constants.ZSTD_dfast `
764+ * ` zlib.constants.ZSTD_greedy `
765+ * ` zlib.constants.ZSTD_lazy `
766+ * ` zlib.constants.ZSTD_lazy2 `
767+ * ` zlib.constants.ZSTD_btlazy2 `
768+ * ` zlib.constants.ZSTD_btopt `
769+ * ` zlib.constants.ZSTD_btultra `
770+ * ` zlib.constants.ZSTD_btultra2 `
771+
772+ Example:
773+
774+ ``` js
775+ const stream = zlib .createZstdCompress ({
776+ params: {
777+ [zlib .constants .ZSTD_c_strategy ]: zlib .constants .ZSTD_btultra ,
778+ },
779+ });
780+ ```
753781
754782#### Pledged Source Size
755783
You can’t perform that action at this time.
0 commit comments