开发者

When processor endian awareness is required?

开发者 https://www.devze.com 2023-01-02 16:11 出处:网络
I am in Mac. With Cocoa, I know w开发者_Python百科ith normal files we can directly read or write without worrying about the endianness.

I am in Mac.

With Cocoa,

I know w开发者_Python百科ith normal files we can directly read or write without worrying about the endianness.

When processor endian awareness is required?

Regards,

Dhana.


What's a "normal" file? If you mean text files, then yes, you don't need to worry about endianness. If you write binary files containing numbers with multiple bytes, and if your file might possibly be read on a PowerPC Mac, then you do need to think about endianness.

0

精彩评论

暂无评论...
验证码 换一张
取 消