Class Decompress
Index
Constructors
constructor
- new
Decompress (opts, cb?): Decompress Creates a decompression stream
Parameters
- opts: InflateStreamOptions
The decompression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is decompressed
Returns Decompress
- opts: InflateStreamOptions
- new
Decompress (cb?): Decompress Creates a decompression stream
Parameters
Optional
cb: FlateStreamHandlerThe callback to call whenever data is decompressed
Returns Decompress
Methods
push
- push(chunk, final?): void
Pushes a chunk to be decompressed
Parameters
- chunk: Uint8Array
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array
Streaming GZIP, Zlib, or raw DEFLATE decompression