AsyncDeflate
Asynchronous streaming DEFLATE compression
class AsyncDeflate { }
constructor(cb?: AsyncFlateStreamHandler);
ondata: AsyncFlateStreamHandler;
ondrain?: AsyncFlateDrainHandler;
queuedSize: number;
terminate: AsyncTerminable;
flush(): void;
push(chunk: Uint8Array, final?: boolean): void;
§Constructors
§
Creates an asynchronous DEFLATE stream
@param opts
The compression options
@param cb
The callback to call whenever data is deflated
§
new AsyncDeflate(cb?: AsyncFlateStreamHandler)
[src]Creates an asynchronous DEFLATE stream
@param cb
The callback to call whenever data is deflated
§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)
§
terminate: AsyncTerminable
[src]A method to terminate the stream's internal worker. Subsequent calls to push() will silently fail.