Skip to content

createZstdDecompressDictTransform

createZstdDecompressDictTransform(dict, maxOutputSize?): Transform

Defined in: node.d.ts:139

Create a Node.js stream.Transform for zstd decompression with a pre-trained dictionary.

Uses Node.js stream.Transform to provide chunked decompression with a pre-trained dictionary, compatible with stream.pipeline() and pipe-based workflows.

The transform emits an error if the input ends before the compressed stream does, including empty input.

Output chunks hold at most readableHighWaterMark bytes (64 KiB by default, 16 KiB on Windows).

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

Pre-trained dictionary (must match the one used for compression).

number

Transform