Hi,

when writing structs from memory to binary files, one needs to take care of
the different padding/alignment strategies among different compilers.
(for example Visual C++ uses a 4-byte member alignment by default).
What is the official guideline to deal with that problem?
Compiler-specific #ifdefs?
Avoid it completely and write byte by byte in such cases?
(Can't find anything on it in README.developer - perhaps it should be
mentioned?)

Reply via email to