mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 06:04:13 +02:00
Change write metadata signature to pointer
This commit is contained in:
@@ -144,6 +144,13 @@ void FastH5Writer::write_data(const char *buffer)
|
||||
}
|
||||
}
|
||||
|
||||
template <class T> void FastH5Writer::write_metadata(
|
||||
const std::string& name, const T* value)
|
||||
{
|
||||
auto buffer_ptr = buffers_.at(name);
|
||||
buffer_ptr.get()[current_frame_index_] = value;
|
||||
}
|
||||
|
||||
template <>
|
||||
void FastH5Writer::add_scalar_metadata<uint64_t>(
|
||||
const std::string& metadata_name)
|
||||
|
||||
Reference in New Issue
Block a user