zstd_compress_raw {qs} | R Documentation |
Zstd compression
Description
Compresses to a raw vector using the zstd algorithm. Exports the main zstd compression function.
Usage
zstd_compress_raw(x, compress_level)
Arguments
x |
The object to serialize. |
compress_level |
The compression level used (default |
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))
[Package qs version 0.26.3 Index]