mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-07 03:24:14 +02:00
Reordered struct for better binary transfer
This commit is contained in:
@@ -12,10 +12,12 @@
|
||||
#include <chrono>
|
||||
#include "date.h"
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
struct FileBufferMetadata {
|
||||
// Needed by RingBuffer
|
||||
size_t buffer_slot_index;
|
||||
const size_t frame_bytes_size = 2*512*1024*1000;
|
||||
const uint64_t frame_bytes_size = 2*512*1024*1000;
|
||||
uint64_t buffer_slot_index;
|
||||
|
||||
uint64_t start_pulse_id;
|
||||
uint64_t stop_pulse_id;
|
||||
@@ -26,6 +28,7 @@ struct FileBufferMetadata {
|
||||
uint32_t daq_rec[1000];
|
||||
uint16_t n_received_packets[1000];
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
struct FrameMetadata
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user