Skip to main content

Module reader

Module reader 

Source
Expand description

Reading a tilepack: parse front matter from a prefix, then address tiles by byte range or by slice.

Structs§

FrontMatter
Parsed header, descriptors, layout, and offset index — everything needed to plan tile fetches without touching a single tile blob.
TilepackReader
A tilepack read from a seekable source, fetching tile bytes on demand.
TilepackView
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.