17#ifndef INDEXEDFILE_V201_V301_TYPE_HEADER
18#define INDEXEDFILE_V201_V301_TYPE_HEADER
34static inline uint32_t getFileId()
36 static uint32_t file_id = *((uint32_t*)
"IFHD");
41static constexpr uint32_t version_id_beta = 0x0200;
44static constexpr uint32_t version_id = 0x00000201;
47static constexpr uint32_t version_id_with_history = 0x00000300;
50static const uint32_t version_id_with_history_end_offset = 0x00000301;
73 fm_description = 0x01,
83 rf_use_external_buffer = 0x1,
namespace for indexed file definitions in version 2.0, 2.1, 3.0 and 3.1
Definition indexedfile_types_v201_v301.h:28
ChunkType
Definition indexedfile_types_v201_v301.h:330
@ ct_marker
marks the chunk as marker data
Definition indexedfile_types_v201_v301.h:338
@ ct_keydata
marks the chunk as KEY data (results to an index table entry)
Definition indexedfile_types_v201_v301.h:334
@ ct_info
marks the chunk as info data
Definition indexedfile_types_v201_v301.h:336
@ ct_trigger
marks the chunk as trigger data
Definition indexedfile_types_v201_v301.h:342
@ ct_data
marks the chunk as data
Definition indexedfile_types_v201_v301.h:332
@ ct_type
marks the chunk as type data
Definition indexedfile_types_v201_v301.h:340
FieldMask
Definition indexedfile_types_v201_v301.h:71
ChecksumType
Type of the checksum function used for calculating the checksum in the "checksums" extension.
Definition indexedfile_types_v201_v301.h:284
OpenMode
Definition indexedfile_types_v201_v301.h:349
@ om_query_info
Definition indexedfile_types_v201_v301.h:358
@ om_store_checksums
Definition indexedfile_types_v201_v301.h:380
@ om_none
Definition indexedfile_types_v201_v301.h:353
@ om_file_change_mode
Definition indexedfile_types_v201_v301.h:368
@ om_validate_chunk_header
Definition indexedfile_types_v201_v301.h:364
@ om_no_overwrite
Definition indexedfile_types_v201_v301.h:374
SeekFlags
Definition indexedfile_types_v201_v301.h:317
@ sf_default
The default seek flag.
Definition indexedfile_types_v201_v301.h:319
@ sf_before
Seek to the last chunk before the seek time.
Definition indexedfile_types_v201_v301.h:323
@ sf_keydata
Just seek in index table.
Definition indexedfile_types_v201_v301.h:321
TimeFormat
Definition indexedfile_types_v201_v301.h:57
@ tf_chunk_index
The earliest chunk at or after this index counter within within the whole file, filtered by the strea...
Definition indexedfile_types_v201_v301.h:59
@ tf_chunk_time
The earliest chunk at or after this timestamp, filtered by the stream Id.
Definition indexedfile_types_v201_v301.h:61
@ tf_stream_index
Definition indexedfile_types_v201_v301.h:64
ReadFlags
Definition indexedfile_types_v201_v301.h:81
namespace for IFHD File library
Definition indexedfile_types.h:30
Additional index table information.
Definition indexedfile_types_v201_v301.h:271
uint8_t reserved[20]
for later use
Definition indexedfile_types_v201_v301.h:279
uint64_t stream_index_offset
Definition indexedfile_types_v201_v301.h:274
uint32_t stream_table_index_offset
Definition indexedfile_types_v201_v301.h:277
header for a chunk reference
Definition indexedfile_types_v201_v301.h:215
uint64_t stream_index
number of chunk within the stream it belongs to
Definition indexedfile_types_v201_v301.h:232
uint32_t ref_stream_table_index
Definition indexedfile_types_v201_v301.h:236
uint64_t time_stamp
timestamp of the chunk in microseconds or nanoseconds resolution (depending on file version)
Definition indexedfile_types_v201_v301.h:217
uint64_t chunk_offset
file offset position of the chunk it refers to (in byte)
Definition indexedfile_types_v201_v301.h:228
uint16_t stream_id
stream identifier of the chunk it refers to
Definition indexedfile_types_v201_v301.h:223
uint32_t size
Definition indexedfile_types_v201_v301.h:221
uint64_t chunk_index
number of chunk
Definition indexedfile_types_v201_v301.h:230
uint16_t flags
Definition indexedfile_types_v201_v301.h:226
Header for a file extensions.
Definition indexedfile_types_v201_v301.h:161
uint32_t version_id
optional version id
Definition indexedfile_types_v201_v301.h:173
uint8_t reserved[96]
reserved. currently not in use
Definition indexedfile_types_v201_v301.h:180
uint8_t reserved1[2]
reserved. currently not in use
Definition indexedfile_types_v201_v301.h:167
int8_t identifier[max_file_extension_identifier_length]
Identifier.
Definition indexedfile_types_v201_v301.h:163
uint64_t data_pos
Definition indexedfile_types_v201_v301.h:176
uint32_t user_id
optional user id
Definition indexedfile_types_v201_v301.h:169
uint64_t data_size
size of the extension-data in bytes
Definition indexedfile_types_v201_v301.h:178
uint16_t stream_id
related Stream identifier. 0 for every stream 1> id >= Max streams)
Definition indexedfile_types_v201_v301.h:165
uint32_t type_id
optional type id
Definition indexedfile_types_v201_v301.h:171
A checksum over a range within the file itself.
Definition indexedfile_types_v201_v301.h:299
uint64_t offset
The start offset of the range.
Definition indexedfile_types_v201_v301.h:301
uint64_t size
The size of the range.
Definition indexedfile_types_v201_v301.h:303
uint64_t checksum
The hash over the range (using XXH3)
Definition indexedfile_types_v201_v301.h:305
Definition indexedfile_types_v201_v301.h:244
uint32_t ref_master_table_index
Definition indexedfile_types_v201_v301.h:248