Skip to main content

Module reader

Module reader 

Source
Expand description

SegmentReader — zero-copy view over segment bytes.

Designed to wrap an mmap’d file in production. The reader only borrows the slice and lazily decodes tile payloads on demand; the footer is decoded eagerly at construction so subsequent tile lookups are bounded reads + zerompk decode (no rescan).

Structs§

OwnedSegmentReader
An owned segment reader that holds decrypted segment bytes.
SegmentReader

Enums§

TilePayload
Decoded tile payload.

Functions§

extract_cell_bytes
Extract the encoded CellPayload bytes for a specific coord from a SparseTile.