Expand description
The codec API for the zarrs crate.
§Licence
zarrs_codec is licensed under either of
- the Apache License, Version 2.0 LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0 or
- the MIT license LICENSE-MIT or http://opensource.org/licenses/MIT, at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Structs§
- Array
Bytes Fixed Disjoint View - A disjoint view of the bytes in an array with a fixed-length data type.
- Array
Bytes Offsets - Array element byte offsets.
- Array
Bytes Optional - Optional array bytes composed of data and a validity mask.
- Array
Bytes RawOffsets OutOf Bounds Error - An error raised if variable length array bytes offsets are out of bounds.
- Array
Bytes Variable Length - Variable length array bytes composed of bytes and element bytes offsets.
- Byte
Interval Partial Decoder - A partial decoder for a byte interval of a
BytesPartialDecoderTraitspartial decoder. - Codec
Metadata Options - Options for codec metadata.
- Codec
Options - Codec options for encoding/decoding.
- Codec
Partial Default - Generic partial codec for all codec operations with default behavior.
- Codec
Plugin V2 - A Zarr V2 codec plugin.
- Codec
Plugin V3 - A Zarr V3 codec plugin.
- Expected
Fixed Length Bytes Error - Expected fixed length array bytes but found variable or optional.
- Expected
Optional Bytes Error - Expected optional array bytes but found fixed or variable.
- Expected
Variable Length Bytes Error - Expected variable length array bytes but found fixed or optional.
- Invalid
Array Shape Error - An error indicating the shape is not compatible with the expected number of elements.
- Invalid
Bytes Length Error - An error indicating the length of bytes does not match the expected length.
- Invalid
Number OfElements Error - An error indicating the length of elements does not match the expected length.
- Partial
Decoder Capability - Describes the partial decoding capabilities of a codec.
- Partial
Encoder Capability - Describes the partial encoding capabilities of a codec.
- Recommended
Concurrency - The recommended concurrency of a codec includes the most efficient and maximum recommended concurrency.
- Storage
Partial Decoder - A
ReadableStoragestore value partial decoder. - Storage
Partial Encoder - A store value partial encoder generic over storage type.
- Subset
OutOf Bounds Error - An array subset is out of bounds.
Enums§
- Array
Bytes - Fixed or variable length array bytes.
- Array
Bytes Decode Into Target - A target for decoding array bytes into a preallocated output view.
- Array
Bytes Error - Errors related to
ArrayBytes<'_>andArrayBytes. - Array
Bytes Fixed Disjoint View Create Error - Errors that can occur when creating a
ArrayBytesFixedDisjointView. - Array
Bytes RawOffsets Create Error - An error creating
ArrayBytesOffsets. - Bytes
Representation - The decoded representation of
bytes. - Codec
- A generic array to array, array to bytes, or bytes to bytes codec.
- Codec
Error - A codec error.
- Codec
Metadata - Codec metadata for different Zarr versions.
Statics§
- CODEC_
RUNTIME_ REGISTRY_ V2 - Global runtime registry for V2 codec plugins.
- CODEC_
RUNTIME_ REGISTRY_ V3 - Global runtime registry for V3 codec plugins.
Traits§
- Array
Codec Traits - Traits for both array to array and array to bytes codecs.
- Array
Partial Decoder Traits - Partial array decoder traits.
- Array
Partial Encoder Traits - Partial array encoder traits.
- Array
ToArray Codec Traits - Traits for array to array codecs.
- Array
ToBytes Codec Traits - Traits for array to bytes codecs.
- Bytes
Partial Decoder Traits - Partial bytes decoder traits.
- Bytes
Partial Encoder Traits - Partial bytes encoder traits.
- Bytes
ToBytes Codec Traits - Traits for bytes to bytes codecs.
- Codec
Traits - Codec traits.
- Codec
Traits V2 - Trait for creating a codec from Zarr V2 metadata.
- Codec
Traits V3 - Trait for creating a codec from Zarr V3 metadata.
Functions§
- copy_
fill_ value_ into - Decode the fill value into a subset of a preallocated output.
- decode_
into_ array_ bytes_ target - Helper function to decode
ArrayBytesinto a target, handling mask and data separately. - register_
codec_ v2 - Register a V2 codec plugin at runtime.
- register_
codec_ v3 - Register a V3 codec plugin at runtime.
- unregister_
codec_ v2 - Unregister a runtime V2 codec plugin.
- unregister_
codec_ v3 - Unregister a runtime V3 codec plugin.
- update_
array_ bytes - Update array bytes.
Type Aliases§
- Array
Bytes Raw - Raw array element bytes.
- Codec
Runtime Plugin V2 - A runtime V2 codec plugin for dynamic registration.
- Codec
Runtime Plugin V3 - A runtime V3 codec plugin for dynamic registration.
- Codec
Runtime Registry Handle V2 - A handle to a registered V2 codec plugin.
- Codec
Runtime Registry Handle V3 - A handle to a registered V3 codec plugin.