Hmm, I'll have that in mind next time... Manuals I read about using QDataStream to serialize structures to QByteArray and vice-versa didn't mentioned this.
To be honest, I never actually understood this point. For instance, if I go to stdint.h I'll find
Qt Code:
typedef unsigned int uint32_t;To copy to clipboard, switch view to plain text mode
Which means that there is no difference between I writing my code with unsigned int or uint32_t, since they are the same. If a difference in architecture appears between two different projects, they will do wrong independent on the name I use since they will be synonyms. Of course, for clarity purposes, it's still worth the use of the typedef nomenclature.
Thanks,
Momergil





Reply With Quote

My expectation/presupposition was, indeed, doomed to fail some time.

Bookmarks