Any answer ? No clue on that ?

FH

Le 2016-01-03 15:56, houssen a écrit :
Hello,

What is the portable way to write / read data ?

Say my data is an array of doubles (C type).
My understanding is that if I write them in a data set with the
H5T_NATIVE_DOUBLE type, then:
1. the type is modified to H5T_IEEE_F64BE or H5T_IEEE_F64LE according
to the endianness (say it is BE) of the computer I use.
2. data are written in the hdf5 file.
Now I have to read the data from another computer (say it is a LE one).
My understanding is that I still must use the H5T_NATIVE_DOUBLE type,
and, that:
1. data are read in BE.
2. data are converted to LE.
3. data are sent back (as LE).

Am I correct ? Is that the right way to do things ? If not, what is
the right way ?

Happy new year,

Franck


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]

http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to