Template Function write_raw_data_to_h5_group¶
Defined in File h5write.hpp
Function Documentation¶
-
template<typename T>
void write_raw_data_to_h5_group(h5utils::H5Group &group, const std::string &dataset_name, const T *data_ptr, const std::vector<hsize_t> &shape)¶ Writes raw data to an already open HDF5 group.
This avoids reopening the file or recreating the group, and is ideal for batch writes inside a known group context.
- Template Parameters:
T – The type of the data to write (e.g., double, int).
- Parameters:
group – The open HDF5 group.
dataset_name – Name of the dataset (not full path).
data_ptr – Pointer to the raw data to write.
shape – Shape of the dataset as a vector of hsize_t.