Skip to contents

Class representing a LZ4 compressor

Details

LZ4 compressor for Zarr

Super class

pizzarr::Codec -> Lz4Codec

Public fields

acceleration

The compression level.

Methods


Method new()

Create a new LZ4 compressor.

Usage

Lz4Codec$new(acceleration = 1)

Arguments

acceleration

The compression level.

Returns

A new Lz4Codec object.


Method encode()

Compress data.

Usage

Lz4Codec$encode(buf, zarr_arr)

Arguments

buf

The un-compressed data.

zarr_arr

The ZarrArray instance.

Returns

Compressed data.


Method decode()

Decompress data.

Usage

Lz4Codec$decode(buf, zarr_arr)

Arguments

buf

The compressed data.

zarr_arr

The ZarrArray instance.

Returns

Un-compressed data.


Method get_config()

Get Configuration

Usage

Lz4Codec$get_config()


Method clone()

The objects of this class are cloneable with this method.

Usage

Lz4Codec$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.