Skip to contents

Class representing a Blosc compressor

Details

Blosc compressor for Zarr

Super class

pizzarr::Codec -> BloscCodec

Public fields

cname

The compression algorithm to use.

clevel

The compression level.

shuffle

The shuffle filter to use.

blocksize

The block size.

Methods


Method new()

Create a new Blosc compressor.

Usage

BloscCodec$new(cname = "lz4", clevel = 5, shuffle = TRUE, blocksize = NA)

Arguments

cname

The compression algorithm to use.

clevel

The compression level.

shuffle

The shuffle filter to use.

blocksize

The block size.

Returns

A new BloscCodec object.


Method encode()

Compress data.

Usage

BloscCodec$encode(buf, zarr_arr)

Arguments

buf

The un-compressed data.

zarr_arr

The ZarrArray instance.

Returns

Compressed data.


Method decode()

Decompress data.

Usage

BloscCodec$decode(buf, zarr_arr)

Arguments

buf

The compressed data.

zarr_arr

The ZarrArray instance.

Returns

Un-compressed data.


Method get_config()

Get Configuration

Usage

BloscCodec$get_config()


Method clone()

The objects of this class are cloneable with this method.

Usage

BloscCodec$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.