Skip to contents

The "packbits" filter packs logical values into bits, most significant bit first. The first byte of the encoded data gives the number of bits that pad the final byte.

Super classes

zarr_extension -> zarr_codec -> zarr_filter -> zarr_filter_packbits

Methods

Inherited methods


zarr_filter_packbits$new()

Create a new "packbits" filter.

Usage

zarr_filter_packbits$new(configuration = list())

Arguments

configuration

Ignored, the filter has no configuration parameters.

Returns

An instance of this class.


zarr_filter_packbits$decode()

Decode the data.

Usage

zarr_filter_packbits$decode(data)

Arguments

data

The encoded data, an integer vector of byte values.

Returns

A logical vector with the decoded data.