Skip to main content

Module header

Module header 

Source
Expand description

File header for the Crous binary format.

Layout (8 bytes total):

Offset  Size  Description
0       7     ASCII magic "CROUSv1"
7       1     Flags byte

Flags byte layout:

Bit 0:   Reserved (must be 0)
Bit 1:   Has index block (1 = yes)
Bit 2:   Has schema block (1 = yes)
Bit 3-7: Reserved (must be 0)

Structs§

FileHeader
Parsed file header.

Constants§

FLAGS_HAS_INDEX
Flag: file contains an index block.
FLAGS_HAS_SCHEMA
Flag: file contains a schema block.
FLAGS_NONE
No flags set.
HEADER_SIZE
Header size in bytes.
MAGIC
The 7-byte magic identifying a Crous file.