Skip to main content

Module format

Module format 

Source
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
Header flags

Structs§

Beacon
Header
Parsed index header.

Enums§

FileStatus
File status in the file table

Constants§

FILE_ENTRY_SIZE
File entry size in bytes
HEADER_SIZE
Fixed header size (256 bytes)
MAGIC
Magic bytes: ASCII “IX01”
TRIGRAM_ENTRY_SIZE
Trigram entry size in bytes (u32 key + 16-byte existing entry)
VERSION_MAJOR
Current format version
VERSION_MINOR

Functions§

is_binary
Centralized binary file detection.