Function deflate
- deflate(
data: Uint8Array<ArrayBufferLike>,
opts: AsyncDeflateOptions,
cb: FlateCallback,
): AsyncTerminable Parameters
- data: Uint8Array<ArrayBufferLike>
The data to compress
- opts: AsyncDeflateOptions
The compression options
- cb: FlateCallback
The function to be called upon compression completion
Returns AsyncTerminable
A function that can be used to immediately terminate the compression
- data: Uint8Array<ArrayBufferLike>
- deflate(data: Uint8Array<ArrayBufferLike>, cb: FlateCallback): AsyncTerminable
Asynchronously compresses data with DEFLATE without any wrapper
Parameters
- data: Uint8Array<ArrayBufferLike>
The data to compress
- cb: FlateCallback
The function to be called upon compression completion
Returns AsyncTerminable
- data: Uint8Array<ArrayBufferLike>
Asynchronously compresses data with DEFLATE without any wrapper