ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | Static Public Attributes | List of all members
session_file_header Struct Referencefinal

File header for session recording files. More...

#include <session_file.hpp>

Collaboration diagram for session_file_header:
Collaboration graph

Public Attributes

std::array< std::uint8_t, 8 > magic
 
std::uint16_t version
 
std::uint16_t reserved1
 
std::uint16_t protocol_version_major
 
std::uint16_t protocol_version_minor
 
boost::uuids::uuid session_id
 
std::int64_t start_timestamp_us
 
std::uint16_t server_address_length
 
messaging::compression_type compression
 
std::array< std::uint8_t, 21 > reserved2
 

Static Public Attributes

static constexpr size_t size = 64
 

Detailed Description

File header for session recording files.

Layout (64 bytes): +0: magic (8 bytes) - "ORES-REC" identifier +8: version (2 bytes) - File format version +10: reserved1 (2 bytes) - Reserved for future use +12: protocol_version_major (2 bytes) - ORES protocol version used +14: protocol_version_minor (2 bytes) - ORES protocol minor version +16: session_id (16 bytes) - UUID v7 for this recording session +32: start_timestamp (8 bytes) - Session start time (microseconds since epoch) +40: server_address_length (2 bytes) - Length of server address string +42: compression (1 byte) - Negotiated compression type +43: reserved2 (21 bytes) - Reserved for future use

Following the header: