Class Unzlib
Index
Constructors
constructor
- new Unzlib(opts: UnzlibStreamOptions, cb?: FlateStreamHandler): Unzlib
Creates a Zlib decompression stream
Parameters
- opts: UnzlibStreamOptions
The decompression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is inflated
Returns Unzlib
- opts: UnzlibStreamOptions
- new Unzlib(cb?: FlateStreamHandler): Unzlib
Creates a Zlib decompression stream
Parameters
Optional
cb: FlateStreamHandlerThe callback to call whenever data is inflated
Returns Unzlib
Methods
push
- push(chunk: Uint8Array<ArrayBufferLike>, final?: boolean): void
Pushes a chunk to be unzlibbed
Parameters
- chunk: Uint8Array<ArrayBufferLike>
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array<ArrayBufferLike>
Streaming Zlib decompression