Extension methods for BinaryReader/BinaryWriter for switching byte endianness.