lz4_compress_raw: lz4 compression

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

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

Usage

1
lz4_compress_raw(x, compress_level)

Arguments

x

A Raw Vector

compress_level

The compression level (> 1).

Value

The compressed data

Examples

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

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