zstd_compress_raw

0th

Percentile

Zstd compression

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

Usage
zstd_compress_raw(x, compress_level)
Arguments
x

A Raw Vector

compress_level

The compression level (-50 to 22)

Value

The compressed data

Aliases
  • zstd_compress_raw
Examples
# NOT RUN {
x <- 1:1e6
xserialized <- serialize(x, connection=NULL)
xcompressed <- zstd_compress_raw(xserialized, compress_level = 1)
xrecovered <- unserialize(zstd_decompress_raw(xcompressed))
# }
Documentation reproduced from package qs, version 0.12, License: AGPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.