Function: decompress()
May 16, 2026 ยท View on GitHub
Function: decompress()
Call Signature
decompress(
data:Uint8Array,opts:AsyncInflateOptions,cb:FlateCallback):AsyncTerminable
Asynchrononously expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
Parameters
data
Uint8Array
The data to decompress
opts
The decompression options
cb
The function to be called upon decompression completion
Returns
A function that can be used to immediately terminate the decompression
Call Signature
decompress(
data:Uint8Array,cb:FlateCallback):AsyncTerminable
Asynchrononously expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
Parameters
data
Uint8Array
The data to decompress
cb
The function to be called upon decompression completion
Returns
A function that can be used to immediately terminate the decompression