Class: Cabriolet::Binary::HLPStructures::FileHeader
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Cabriolet::Binary::HLPStructures::FileHeader
- Defined in:
- lib/cabriolet/binary/hlp_structures.rb
Overview
QuickHelp file header (70 bytes total: 2 byte signature + 68 byte header)
Structure:
-
2 bytes: signature (0x4C 0x4E)
-
2 bytes: version (always 2)
-
2 bytes: attributes (bit flags)
-
1 byte: control character (usually ‘:’ or 0xFF)
-
1 byte: padding
-
2 bytes: topic count
-
2 bytes: context count
-
1 byte: display width
-
1 byte: padding
-
2 bytes: predefined context count
-
14 bytes: database name (null-terminated, null-padded)
-
4 bytes: reserved
-
4 bytes: topic index offset
-
4 bytes: context strings offset
-
4 bytes: context map offset
-
4 bytes: keywords offset (0 if not used)
-
4 bytes: huffman tree offset (0 if not used)
-
4 bytes: topic text offset
-
4 bytes: reserved
-
4 bytes: reserved
-
4 bytes: database size