decompress {zlib}R Documentation

Single-step decompression of raw data

Description

Decompresses the provided compressed raw data in a single step.

Usage

decompress(data, wbits = 0)

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.

Value

A raw vector containing the decompressed data.

Examples

original_data <- charToRaw("some data")
compressed_data <- compress(original_data)
decompressed_data <- decompress(compressed_data)


[Package zlib version 1.0.3 Index]