News for hackers. Stuff that matters.
Re:Stop Memsetting Structures by anyfoo on Saturday April 27, 2019 @03:45PM (#19767280)
There is an attribute that lets you specify alignment per-struct, which means you will know the exact layout.
Re:Stop Memsetting Structures by hermitdev on Saturday April 27, 2019 @07:51PM (#19768408)
But it is still potentially problematic if not all of your clients have the same endianess. Memcpy and exact layout still fails you there.