05.05.2014 18:41, Werner Benger пишет:
It would seem that alignment attributes would help in case this is
implemented in a future version of HDF5, like in GCC
http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html#Variable-Attributes
or C++11: http://en.cppreference.com/w/cpp/language/alignas
But it's probably not possible with every compiler to do.
There is also something called "pragma pack":
#pragma pack(push, 1)
struct Foo
{
// ...
};
#pragma pack(pop)
Not sure how widely it is supported, but both GCC and Microsoft
compilers are aware of it.
Best wishes,
Andrey Paramonov
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org