|
|
|
|
|
by formerly_proven
1779 days ago
|
|
Accessing packed struct members works fine on x86, but will blow up at runtime or do weird things on platforms which don't support unaligned loads or stores. The correct way to access packed structs is through memcpy, just like you'd access any other potentially unaligned object. |
|