News for hackers. Stuff that matters.
Re:The day byte alignment came back to bite me by Someone on Thursday January 29, 2015 @09:11AM (#8966168)
"Changing the instances of 13 to 16 in the above code fixed the problem"

Not in my book. It made the symptom disappear, but the problem stayed. You don't compute magical constants and put them in your source code if your language has AlignOf, Sizeof and Offsetof.

Re:The day byte alignment came back to bite me by njern on Thursday January 29, 2015 @02:18PM (#8968252)
As you rightly point out, the more correct solution is of course to use unsafe.Sizeof()