zstd_compress_raw: Zstd compression

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Compression of raw vector. Exports the main zstd compression function.

Usage

1
zstd_compress_raw(x, compress_level)

Arguments

x

A Raw Vector

compress_level

The compression level (-50 to 22)

Value

The compressed data

Examples

1
2
3
4
x <- 1:1e6
xserialized <- serialize(x, connection=NULL)
xcompressed <- zstd_compress_raw(xserialized, compress_level = 1)
xrecovered <- unserialize(zstd_decompress_raw(xcompressed))

qs documentation built on Nov. 6, 2021, 1:07 a.m.