zstdDecompress: Zstandard comression

Description Usage Arguments Details Value See Also Examples

View source: R/zstd.R

Description

Zstandard, or zstd as short version, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios.

Usage

1

Arguments

data

input data to be decomressed

Details

Decompresses data previously compressed with zstdCompress

Value

decompressed data

See Also

memCompress zstdCompress zstdMaxCLevel

Examples

1
2
3
4
5
6
# Simple example
library(zstdr)
data_file <- file.path(R.home(), "COPYING")
data <- readBin(data_file, raw(), file.info(data_file)$size)
compressed <- zstdCompress(data)
stopifnot(identical(data, zstdDecompress(compressed)))

zstdr documentation built on June 7, 2017, 1:02 a.m.