Add type-safe meta file format with enum-based entries
- Add MetaFileFormat enum (Hashed, DirectFixed, DirectVariable) to distinguish
entry formats in meta files
- Create format-specific entry structs: HashedMetaEntry, DirectFixedMetaEntry,
DirectVariableMetaEntry with appropriate fields for each format type
- Wrap entries in MetaEntry enum with type-safe accessors (as_hashed(),
as_direct_fixed(), as_direct_variable())
- Update MetaFileBuilder to write format byte and format-specific entries
- Update MetaFile::open_internal to read format byte and parse format-specific
entries
- Add unreachable!() assertions for impossible cases in db.rs (AMQF miss and
blob values in direct-fixed format)
- Update README with new meta file format documentation
Co-Authored-By:
Claude Opus 4.5 <noreply@anthropic.com>
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment