Skip to contents

Abstract class representing a compressor.

Details

Abstract compressor for Zarr

Methods


Method encode()

Compress data.

Usage

Codec$encode(buf, zarr_arr)

Arguments

buf

The un-compressed data.

zarr_arr

The ZarrArray instance.

Returns

Compressed data.


Method decode()

Decompress data.

Usage

Codec$decode(buf, zarr_arr)

Arguments

buf

The compressed data.

zarr_arr

The ZarrArray instance.

Returns

Un-compressed data.


Method get_config()

Get Configuration

Usage

Codec$get_config()


Method clone()

The objects of this class are cloneable with this method.

Usage

Codec$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.