zstd_compress_raw: Zstd compression

View source: R/RcppExports.R

zstd_compress_rawR Documentation

Zstd compression

Description

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

Usage

zstd_compress_raw(data, compress_level)

Arguments

data

Raw vector to be compressed.

compress_level

The compression level used.

Value

The compressed data as a raw vector.

Examples

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

qs2 documentation built on Sept. 30, 2024, 9:44 a.m.