Skip to main content

Module indexed

Module indexed 

Source
Expand description

Tables of records an index found: the messages of one type in a flight log, the frames of one CAN message in a candump.

A log interleaves its message types, so where the rows of one type are is not arithmetic. One pass over the file records where each record of each type starts (Offsets); a table is then decoded from a map of the file at those offsets through the decode core of the binary format specs (crate::fixed_records), only the rows and columns a view reaches. The pass’s result is kept (cached), so the home screen can list a log’s tables and each opens without reading the file again.

Structs§

IndexedRecords
The records of one type: fixed columns at offsets into each record.

Enums§

Offsets
Where each record of one type starts, four bytes a record when the file allows.

Constants§

MAX_RECORDS
Records one pass indexes, all types together. Four bytes a record for a file under 4 GiB, eight past it: 256 MiB at most for a file under 4 GiB.

Functions§

cached
The index of path: the one kept, or build’s, which is then kept.
forget
Let go of the index of path kept for type T.
keep
Keep index as the one of path, in place of any kept before.
peek
The index of path a pass already made, while the file is as it was.