Common: Use the OSX equivalent byte-swap functions