From b5ed279f4bedc24e79c31b94ce19cb599211f70d Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Fri, 17 Apr 2020 11:16:26 +0200 Subject: [PATCH] Add format marker to JF file format --- core-buffer/include/JFFileFormat.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core-buffer/include/JFFileFormat.hpp b/core-buffer/include/JFFileFormat.hpp index dc21ef7..dff42c5 100644 --- a/core-buffer/include/JFFileFormat.hpp +++ b/core-buffer/include/JFFileFormat.hpp @@ -3,9 +3,12 @@ #include "jungfrau.hpp" +const char JF_FORMAT_START_BYTE = 0xBE; + #pragma pack(push) #pragma pack(1) struct JFFileFormat { + const char FORMAT_MARKER = JF_FORMAT_START_BYTE; uint64_t pulse_id; uint64_t frame_id; uint32_t daq_rec;