AsyncGunzip
Asynchronous streaming single or multi-member GZIP decompression
class AsyncGunzip { }
constructor(cb?: AsyncFlateStreamHandler);
ondata: AsyncFlateStreamHandler;
ondrain?: AsyncFlateDrainHandler;
onmember?: GunzipMemberHandler;
queuedSize: number;
terminate: AsyncTerminable;
push(chunk: Uint8Array, final?: boolean): void;
§Constructors
§
Creates an asynchronous GUNZIP stream
@param opts
The decompression options
@param cb
The callback to call whenever data is inflated
§
new AsyncGunzip(cb?: AsyncFlateStreamHandler)
[src]Creates an asynchronous GUNZIP stream
@param cb
The callback to call whenever data is inflated
§Properties
§
ondata: AsyncFlateStreamHandler
[src]The handler to call whenever data is available
§
ondrain: AsyncFlateDrainHandler
[src]The handler to call whenever buffered source data is processed (i.e. queuedSize
updates)
§
onmember: GunzipMemberHandler
[src]The handler to call whenever a new GZIP member is found
§
terminate: AsyncTerminable
[src]A method to terminate the stream's internal worker. Subsequent calls to push() will silently fail.