pub fn split_into_chunks(
s: &TileSnapshot,
max_chunk_bytes: usize,
) -> ArrayResult<(SnapshotHeader, Vec<SnapshotChunk>)>Expand description
Split a TileSnapshot into a header plus a sequence of fixed-size chunks.
max_chunk_bytes must be at least 64. Returns
ArrayError::InvalidOp if it is smaller.
total_chunks = ceil(blob.len() / max_chunk_bytes).max(1) — there is
always at least one chunk, even for an empty blob.