Single entry of the FIFF tag directory: kind, type, byte size and absolute file position. More...


Go to the source code of this file.
Classes | |
| class | FIFFLIB::FiffDirEntry |
| Directory entry: tag kind + on-disk type + byte size + absolute file offset (16-byte record). More... | |
Namespaces | |
| namespace | FIFFLIB |
| FIFF file I/O, in-memory data structures and high-level readers/writers. | |
Single entry of the FIFF tag directory: kind, type, byte size and absolute file position.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2012-2026 MNE-CPP Authors
After the last tag of a FIFF file the writer appends a FIFF_DIR tag whose payload is an array of fiffDirEntryRec records, one per tag in the stream, terminated by a sentinel with kind = -1. The directory turns linear FIFF I/O into random-access: FiffStream consults it to locate any tag by kind without rescanning the file, and FiffDirNode uses it to materialize the block hierarchy (FIFFB_BLOCK_START / FIFFB_BLOCK_END pairs) into a navigable tree.
FiffDirEntry is the in-memory mirror of that 16-byte record. It is intentionally trivially copyable so the directory can be slurped in as a single Eigen / Qt vector.
Definition in file fiff_dir_entry.h.