Replies: 1 comment
-
If you have a Looking at the code, I think it might work, depending on whether HighFive/include/highfive/bits/H5Slice_traits_misc.hpp Lines 216 to 234 in 3addda4 The other semi-pragmatic answer is that what you're asking for is very close to the HDF5 C API. Maybe just use it directly? You can get the required HID from HighFive objects by calling Please let me know if these don't work, or if anything was left uncovered. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Similarly to #452, I'm trying to read a compound type unknown at compile time to memory and handle it dynamically.
I can successfully find information about the compound type using
HighFive::CompoundType::getMembers()
. But I can't read the data.With the following code:
std::vector<uint8_t> v; v.resize(dataset.getStorageSize()); dataset.read(v.data());
I get this error:
I tried other methods that either didn't compile or had similar errors.
I found that the
H5::DataSet::read
method from the HDF5 C++ API only needs a void* and the DataType, that would suit my need. Is there any equivalent in HighFive? Or another method to read a compound type dynamically (without registering a type)?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions