{"version":"1.0","provider_name":"Rainbow Dash Network","provider_url":"http:\/\/rainbowdash.net\/","type":"link","title":"thismightbeauser's status on Sunday, 22-Dec-19 03:43:18 UTC","author_name":"thismightbeauser","author_url":"http:\/\/rainbowdash.net\/thismightbeauser","url":"http:\/\/rainbowdash.net\/notice\/5468113","html":"Apparently reading a binary file to a char pointer and casting to a struct is a bad thing because different architectures can insert padding between the fields to cause them to align &quot;better&quot; for that machine. Writing is the same. I was writing an RLE binary file (a packed bitmap) this way on x64 and reading on 6502 (Commodore 64) and I guess I got lucky that nothing exploded since all the fields were in order of descending size."}