Expand description
Reading a tilepack: parse front matter from a prefix, then address tiles by byte range or by slice.
Structs§
- Front
Matter - Parsed header, descriptors, layout, and offset index — everything needed to plan tile fetches without touching a single tile blob.
- Tilepack
Reader - A tilepack read from a seekable source, fetching tile bytes on demand.
- Tilepack
View - A tilepack held entirely in memory: address tiles as byte slices.
Functions§
- required_
len - The smallest prefix length that lets parsing advance past its current
point, given the bytes in
prefix. Grows monotonically across calls:HEADER_LEN, then the descriptor-table end, then the full front matter.