Skip to content

lz4DecompressWithCapacity

lz4DecompressWithCapacity(data, capacity): Buffer

Defined in: index.d.ts:1608

Decompress LZ4 frame-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.

Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

number

Buffer