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.
Parameters
Section titled “Parameters”Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>
Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>
level?
Section titled “level?”number | null
Returns
Section titled “Returns”Promise<Buffer<ArrayBufferLike>>