Skip to content

zstdDecompressAsync

zstdDecompressAsync(data): Promise<Buffer<ArrayBufferLike>>

Defined in: index.d.ts:1711

Asynchronously decompress Zstandard-compressed data.

Returns a Promise that resolves to the decompressed data as a Buffer. The input may hold several concatenated frames, including skippable frames. The maximum decompressed size is 256 MB. Use zstdDecompressWithCapacity for larger data.

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

Promise<Buffer<ArrayBufferLike>>