Re:A review of endianness bugs in Qt, and how they were fixed
by johannes1234321 on Saturday January 02, 2021 @11:59AM
(#25614161)
This not only leads to the endianess issues, but also alignment/packing.
But yes, people often start that way and regret only when it is too late and the files are in the wild.
But for the longest time people would basically dump the raw bytes of their structs from / to the network whenever possible, e.g.