Skip to content

deflateDecompressWithCapacity

deflateDecompressWithCapacity(data, capacity): Buffer

Defined in: index.d.ts:1418

Decompress raw deflate-compressed data with explicit capacity.

Use this when the decompressed size exceeds the default 256 MB limit. The capacity parameter specifies the maximum decompressed size in bytes. Throws if the input ends before the final deflate block.

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

number

Buffer