Class Deflate
Index
Constructors
constructor
- new
Deflate (opts, cb?): Deflate Creates a DEFLATE stream
Parameters
- opts: DeflateOptions
The compression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Deflate
- opts: DeflateOptions
- new
Deflate (cb?): Deflate Creates a DEFLATE stream
Parameters
Optional
cb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Deflate
Methods
flush
push
- push(chunk, final?): void
Pushes a chunk to be deflated
Parameters
- chunk: Uint8Array
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array
Streaming DEFLATE compression