Skip to content

brotliDecompressWithCapacityAsync

brotliDecompressWithCapacityAsync(data, capacity): Promise<Buffer<ArrayBufferLike>>

Defined in: index.d.ts:1257

Asynchronously decompress Brotli-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

Promise<Buffer<ArrayBufferLike>>