Class Gunzip
Index
Constructors
constructor
- new Gunzip(opts: GunzipStreamOptions, cb?: FlateStreamHandler): Gunzip
Creates a GUNZIP stream
Parameters
- opts: GunzipStreamOptions
The decompression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is inflated
Returns Gunzip
- opts: GunzipStreamOptions
- new Gunzip(cb?: FlateStreamHandler): Gunzip
Creates a GUNZIP stream
Parameters
Optional
cb: FlateStreamHandlerThe callback to call whenever data is inflated
Returns Gunzip
Methods
push
- push(chunk: Uint8Array<ArrayBufferLike>, final?: boolean): void
Pushes a chunk to be GUNZIPped
Parameters
- chunk: Uint8Array<ArrayBufferLike>
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array<ArrayBufferLike>
Streaming single or multi-member GZIP decompression