@@ -1056,7 +1056,8 @@ added: v0.5.8
10561056-->
10571057
10581058* ` kind ` ** Default:** ` zlib.constants.Z_FULL_FLUSH ` for zlib-based streams,
1059- ` zlib.constants.BROTLI_OPERATION_FLUSH ` for Brotli-based streams.
1059+ ` zlib.constants.BROTLI_OPERATION_FLUSH ` for Brotli-based streams, and
1060+ ` zlib.constants.ZSTD_e_flush ` for Zstd-based streams.
10601061* ` callback ` {Function}
10611062
10621063Flush pending data. Don't call this frivolously, premature flushes negatively
@@ -1123,6 +1124,9 @@ Each Zstd-based class takes an `options` object. All options are optional.
11231124* ` finishFlush ` {integer} ** Default:** ` zlib.constants.ZSTD_e_end `
11241125* ` chunkSize ` {integer} ** Default:** ` 16 * 1024 `
11251126* ` params ` {Object} Key-value object containing indexed [ Zstd parameters] [ ] .
1127+ * ` pledgedSrcSize ` {number} Expected total size of the uncompressed input. It
1128+ must be a non-negative safe integer and must match the input size when
1129+ compression finishes. Only applicable to Zstd compressors.
11261130* ` maxOutputLength ` {integer} Limits output size when using
11271131 [ convenience methods] [ ] . ** Default:** [ ` buffer.kMaxLength ` ] [ ]
11281132* ` info ` {boolean} If ` true ` , returns an object with ` buffer ` and ` engine ` . ** Default:** ` false `
@@ -1747,6 +1751,8 @@ Compress a chunk of data with [`ZstdCompress`][].
17471751
17481752### ` zlib.zstdDecompress(buffer[, options], callback) `
17491753
1754+ > Stability: 1 - Experimental
1755+
17501756<!-- YAML
17511757added:
17521758 - v23.8.0
0 commit comments