Reordered struct for better binary transfer

This commit is contained in:
2020-04-21 22:33:21 +02:00
parent 607b0b6fe2
commit 954d89ce7b
+5 -2
View File
@@ -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
{