Expand description
Index file format constants and header parsing.
All integers little-endian. All offsets absolute from file start. Sections aligned to 8-byte boundaries.
Modules§
- flags
- Bit-flag constants stored in the
Header::flagsfield.
Structs§
- Beacon
- A heartbeat file written by the
ixddaemon so other processes can detect a running watcher and query its status. - Header
- Parsed contents of the fixed 256-byte index header.
Enums§
- File
Status - Whether a file tracked by the index is current, out-of-date, or deleted.
Constants§
- FILE_
ENTRY_ SIZE - On-disk size of one file-table entry in the index.
- HEADER_
SIZE - Size of the fixed header at the start of every index file (256 bytes).
- MAGIC
- Magic bytes identifying an ix index file (
b"IX01"). - TRIGRAM_
ENTRY_ SIZE - On-disk size of one trigram-table entry (u32 key + 16-byte payload).
- VERSION_
MAJOR - Major version of the on-disk format this library writes.
- VERSION_
MINOR - Minimum minor version required to read an index file.
Functions§
- is_
binary - Centralized binary file detection.