Dhanaraj
Dhanaraj

Reputation: 1017

When processor endian awareness is required?

I am in Mac.

With Cocoa,

I know with normal files we can directly read or write without worrying about the endianness.

When processor endian awareness is required?

Regards,

Dhana.

Upvotes: 0

Views: 164

Answers (1)

JWWalker
JWWalker

Reputation: 22717

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.

Upvotes: 1

Related Questions