pub fn assemble_chunks(
header: &SnapshotHeader,
chunks: &mut [SnapshotChunk],
) -> ArrayResult<TileSnapshot>Expand description
Reassemble a TileSnapshot from a header and a slice of chunks.
Sorts chunks by chunk_index, validates that exactly 0..total_chunks
are present (no gaps, no duplicates), concatenates their payloads, and
reconstructs the snapshot.
Validation failures → ArrayError::SegmentCorruption.