Class Compress
Index
Constructors
constructor
- new Compress(opts: GzipOptions, cb?: FlateStreamHandler): Compress
Creates a GZIP stream
Parameters
- opts: GzipOptions
The compression options
Optional
cb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Compress
- opts: GzipOptions
- new Compress(cb?: FlateStreamHandler): Compress
Creates a GZIP stream
Parameters
Optional
cb: FlateStreamHandlerThe callback to call whenever data is deflated
Returns Compress
Methods
flush
push
- push(chunk: Uint8Array<ArrayBufferLike>, final?: boolean): void
Pushes a chunk to be GZIPped
Parameters
- chunk: Uint8Array<ArrayBufferLike>
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array<ArrayBufferLike>
Streaming GZIP compression