Zlib
Streaming Zlib compression
class Zlib { }
constructor(cb?: FlateStreamHandler);
private c;
private o;
private p;
private s;
private v;
ondata: FlateStreamHandler;
flush(): void;
push(chunk: Uint8Array, final?: boolean): void;
§Constructors
§
Creates a Zlib stream
@param opts
The compression options
@param cb
The callback to call whenever data is deflated
§
new Zlib(cb?: FlateStreamHandler)
[src]Creates a Zlib stream
@param cb
The callback to call whenever data is deflated
§Properties
§
ondata: FlateStreamHandler
[src]The handler to call whenever data is available