To align the data, you need to use the #pragma pack . To get 16 byte alignment, you will need to use:
#pragma pack(push,16) ... your data structure here ... #pragma pack(pop)
I would advise you to learn more about alignment, because you might get corrupted data.
Venomko
source share