On Wednesday, 12 July 2017 at 07:58:30 UTC, Stefan Koch wrote:
Whereas A struct is always stored __packed__ and aligned to 4 byte boundaries

struct S // size: 20
{
  ubyte m1; // offset: 0
  ulong m2; // offset: 4
  ubyte m3; // offset: 12
  ubyte m4; // offset: 16
}

Do you plan to keep it like that? This won't work on non-x86 architectures that don't allow unaligned memory access.

Reply via email to