Public Attributes |
| uint32_t | file_magic |
| | Magic value to identify file, must be 0xFFBBFFBB (big endian)
|
| uint32_t | file_version |
| | File version, set to BBLOGGER_FILE_VERSION on write and verify on read (big endian)
|
| uint32_t | endianess: 1 |
| | Endianess, 0 little endian, 1 big endian.
|
| uint32_t | reserved: 31 |
| | Reserved for future use.
|
| uint32_t | num_data_items |
| | Number of data items in file, if set to zero reader must scan the file for this number.
|
| char | scenario [BBLOG_SCENARIO_SIZE] |
| | Scenario as defined in config.
|
| char | interface_type [BBLOG_INTERFACE_TYPE_SIZE] |
| | Interface type.
|
| char | interface_id [BBLOG_INTERFACE_ID_SIZE] |
| | Interface ID.
|
| unsigned char | interface_hash [BBLOG_INTERFACE_HASH_SIZE] |
| | Interface Hash.
|
| uint32_t | data_size |
| | size of one interface data block
|
| uint64_t | start_time_sec |
| | Start time, timestamp seconds.
|
| uint64_t | start_time_usec |
| | Start time, timestamp microseconds.
|
BBLogger file header definition.
To identify log files created for different interfaces but belonging to a single run files must be
- created at the exact same timestamp (filename and start_time_* fields
- have the same scenario id The file_version is stored in network byte order. Anything beyond this is stored in the native system format, read the endianess field to check whether you must do data conversion.