Skip to main content

xue/decode/
mod.rs

1//! Reading a Xue bundle, in four layers over [`crate::format`]:
2//!
3//! * `metadata` turns the metadata JSON into the grid, the time axis and the
4//!   variable set the rest of the decoder trusts. It is shared by both
5//!   container versions, which differ only below the index.
6//! * `structure` validates the header geometry and the index — the layer
7//!   that decides a file is well-formed. It parses a v1 plane index (with
8//!   its dependency chains) or a v2 tiled one into the layout `core`
9//!   dispatches on.
10//! * `core` replays residuals over payload bytes, wherever they came from,
11//!   and assembles planes and cell series out of tiles. Its chunk path is
12//!   also exposed on its own as [`decode_chunk`] ([`decode_chunk_u16`] for
13//!   16-bit codes), for a chunk that did not
14//!   come out of a container index — an inner chunk of the Zarr store.
15//! * `bundle` is the public surface: [`Bundle`] and [`StreamingBundle`].
16
17mod bundle;
18mod core;
19pub(crate) mod metadata;
20mod structure;
21
22pub use bundle::{Bundle, StreamingBundle};
23pub use core::{decode_chunk, decode_chunk_u16};