Module zarrs::array::codec

source ·
Expand description

Zarr codecs.

Array chunks can be encoded using a sequence of codecs, each of which specifies a bidirectional transform (an encode transform and a decode transform). A codec can map array to an array, an array to bytes, or bytes to bytes. A codec may support partial decoding to extract a byte range or array subset without needing to decode the entire input.

A CodecChain represents a codec sequence consisting of any number of array to array and bytes to bytes codecs, and one array to bytes codec. A codec chain is itself an array to bytes codec. A ArrayPartialDecoderCache or BytesPartialDecoderCache may be inserted into a codec chain to optimise partial decoding where appropriate.

See https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html#id18.

Re-exports§

Modules§

Structs§

Enums§

  • A generic array to array, array to bytes, or bytes to bytes codec.
  • A codec error.

Traits§

Functions§

Type Aliases§