Expand description
Reading a Xue bundle, in four layers over crate::format:
metadataturns the metadata JSON into the grid, the time axis and the variable set the rest of the decoder trusts. It is shared by both container versions, which differ only below the index.structurevalidates the header geometry and the index — the layer that decides a file is well-formed. It parses a v1 plane index (with its dependency chains) or a v2 tiled one into the layoutcoredispatches on.corereplays residuals over payload bytes, wherever they came from, and assembles planes and cell series out of tiles. Its chunk path is also exposed on its own asdecode_chunk(decode_chunk_u16for 16-bit codes), for a chunk that did not come out of a container index — an inner chunk of the Zarr store.bundleis the public surface:BundleandStreamingBundle.
Structs§
- Bundle
- Streaming
Bundle - A bundle opened from just its structural prefix, with payload bytes arriving incrementally as HTTP range responses.
Functions§
- decode_
chunk - Decode one chunk payload outside any container.
- decode_
chunk_ u16 decode_chunkfor a chunk of 16-bit codes: the Zstandard frame holdsframes × height × widthlittle-endianu16s in the same order, and the PREVIOUS chain is a modulo-65536 residual along the frame axis. The size limit counts codes, so the frame may decompress to twiceMAX_PLANE_LENGTHbytes.