4 ms·
There is an attribute that lets you specify alignment per-struct, which means you will know the exact layout.
by anyfoo 8y ago
There is an attribute that lets you specify alignment per-struct, which means you will know the exact layout.
- hermitdev 8y agoBut it is still potentially problematic if not all of your clients have the same endianess. Memcpy and exact layout still fails you there.