Expand description
IdfReader — mmap zero-copy reader for IDFv1 files.
Cold load: O(0) parse — open the file, validate the 96-byte header region, set up offset views into the mmap region. Lookup: direct pointer arithmetic, no allocation.
Structs§
- Entry
- A read-only entry view backed by mmap (when
IdfReaderwas opened from a file) or by an owned byte buffer (inno_stduse).wordandcodeborrow string-pool bytes; the lifetime ties them to the underlying reader. - IdfReader
- IDFv1 reader. Holds the file’s byte region and the parsed header.
entry_indexlookups are constant-time arithmetic; FST code/word scans useinputx_fsadirectly over the index sections.
Enums§
- Open
Error - Lookup error kind. Public so callers can distinguish “file is a different IDFv version” from “file is corrupt” — actionable difference: a v2 file should drive a tool upgrade prompt; a corrupt file should drive a rebuild.