Skip to main content

decode_tile

Function decode_tile 

Source
pub fn decode_tile(payload: &[u8]) -> Result<Vec<DecodedLayer>>
Expand description

Decode a full tile payload (the layer frame) into its layers.

Accepts the v1 frame in both shapes — aligned (ALIGNED_FRAME_FLAG set, derived padding before each IPC stream) and the legacy unpadded frame written before the flag existed — plus self-contained v2 frames (inline schema sections). A v2 frame that references templates by hash needs the dataset’s registry: use decode_tile_with_templates (a hash reference here is a descriptive error, not a panic).