Decompresses the provided compressed raw data in a single step.
Usage
decompress(data, wbits = 0)
Value
A raw vector containing the decompressed data.
Arguments
data
Compressed raw data to be decompressed.
wbits
The window size bits parameter. Default is 0.
Details
The decompress function offers a streamlined approach to decompressing
raw data. By abstracting the creation of a decompression object, decompressing
the data, and flushing the buffer into one function call, it provides a hassle-free
way to retrieve original data from its compressed form. This function is designed
to work seamlessly with data compressed using the compress function or
any other zlib-based compression method.