You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the resulting std::string value contains the terminating '\0' character as last character in its internal vector of characters.
I found the related issue #224, and am now unsure if this is intended behavior. I personally find this behavior rather odd and not really conforming to what I expected from an interface storing a string attribute into a std::string.
PS: Reading the same attribute but stored as non-fixed-size string in the hdf5 file
When I try to read a fixed-size string attribute with properties (from h5dump -e -a ...) like
using code like
the resulting std::string value contains the terminating '\0' character as last character in its internal vector of characters.
I found the related issue #224, and am now unsure if this is intended behavior. I personally find this behavior rather odd and not really conforming to what I expected from an interface storing a string attribute into a
std::string
.PS: Reading the same attribute but stored as non-fixed-size string in the hdf5 file
using the same c++ code, works as expected (i.e., no trailing
\0
in the resulting std::string).The text was updated successfully, but these errors were encountered: