lz4_compress_raw: lz4 compression

View source: R/RcppExports.R

lz4_compress_rawR Documentation

lz4 compression

Description

Compresses to a raw vector using the lz4 algorithm. Exports the main lz4 compression function.

Usage

lz4_compress_raw(x, compress_level)

Arguments

x

The object to serialize.

compress_level

The compression level used. A number > 1 (higher is less compressed).

Value

The compressed data as a raw vector.

Examples

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 Aug. 10, 2022, 1:16 a.m.