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