R: lz4 compression

lz4_compress_raw {qs} | R Documentation

## lz4 compression

### Description

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

### Usage

    lz4_compress_raw(x, compress_level)

### Arguments

`x` | A Raw Vector
`compress_level` | The compression level (> 1).

### Value

The compressed data

### Examples

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

[Package qs version 0.23.5 Index]