> I thought it was memcpy(<dest>,<orig>, <size>), so I'm copying from ptr to and then swizzling &val. The implementation your discussing is used in WriteGeneric.

Oh sorry, you're right - I misread. (I reviewed it on my iPad last time. I probably screwed up scrolling.)