mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 04:22:22 +02:00
Solve buffer reference bug in reader
This commit is contained in:
@@ -18,10 +18,11 @@ class ReplayH5Reader {
|
||||
H5::DataSet dset_metadata_;
|
||||
H5::DataSet dset_frame_;
|
||||
|
||||
std::unique_ptr<char[]> frame_buffer = std::make_unique<char[]>(
|
||||
std::unique_ptr<char[]> frame_buffer_ = std::make_unique<char[]>(
|
||||
core_buffer::MODULE_N_BYTES * core_buffer::REPLAY_READ_BUFFER_SIZE);
|
||||
std::unique_ptr<char[]> metadata_buffer = std::make_unique<char[]>(
|
||||
sizeof(ModuleFrame) * core_buffer::FILE_MOD);
|
||||
std::unique_ptr<ModuleFrame[]> metadata_buffer_ =
|
||||
std::make_unique<ModuleFrame[]>(core_buffer::FILE_MOD);
|
||||
|
||||
uint64_t buffer_start_pulse_id_ = 0;
|
||||
uint64_t buffer_end_pulse_id_ = 0;
|
||||
void prepare_buffer_for_pulse(const uint64_t pulse_id);
|
||||
|
||||
Reference in New Issue
Block a user