Skip to content

zstdCompressWithDictAsync

zstdCompressWithDictAsync(data, dict, level?): Promise<Buffer<ArrayBufferLike>>

Defined in: index.d.ts:1691

Asynchronously 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

Promise<Buffer<ArrayBufferLike>>