Class: Gunzip

May 16, 2026 ยท View on GitHub

fflate


Class: Gunzip

Streaming single or multi-member GZIP decompression

Constructors

Constructor

new Gunzip(opts: GunzipStreamOptions, cb?: FlateStreamHandler): Gunzip

Creates a GUNZIP stream

Parameters

opts

GunzipStreamOptions

The decompression options

cb?

FlateStreamHandler

The callback to call whenever data is inflated

Returns

Gunzip

Constructor

new Gunzip(cb?: FlateStreamHandler): Gunzip

Creates a GUNZIP stream

Parameters

cb?

FlateStreamHandler

The callback to call whenever data is inflated

Returns

Gunzip

Properties

ondata

ondata: FlateStreamHandler

The handler to call whenever data is available


onmember?

optional onmember?: GunzipMemberHandler

The handler to call whenever a new GZIP member is found

Methods

push()

push(chunk: Uint8Array, final?: boolean): void

Pushes a chunk to be GUNZIPped

Parameters

chunk

Uint8Array

The chunk to push

final?

boolean

Whether this is the last chunk

Returns

void