Skip to content

zstdCompressWithDict

zstdCompressWithDict(data, dict, level?): Buffer

Defined in: index.d.ts:1678

Compress data using Zstandard with a pre-trained dictionary.

The same dictionary must be used for decompression via zstdDecompressWithDict. Level is an integer from -131072 to 22, as for zstdCompress. Default is 3.

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

number | null

Buffer