Skip to contents

The "shuffle" filter rearranges the bytes of the data such that the first bytes of all elements come first, then all second bytes, and so on. This improves compression of the data.

Super classes

zarr_extension -> zarr_codec -> zarr_filter -> zarr_filter_shuffle

Methods

Inherited methods


zarr_filter_shuffle$new()

Create a new "shuffle" filter.

Usage

zarr_filter_shuffle$new(configuration)

Arguments

configuration

A list with element elementsize, the size of the data elements in bytes, by default 4.

Returns

An instance of this class.


zarr_filter_shuffle$decode()

Decode the data.

Usage

zarr_filter_shuffle$decode(data)

Arguments

data

The encoded data, a raw vector.

Returns

A raw vector with the decoded data.