Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
- Subject: Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
- From: "Sean McBride" <email@hidden>
- Date: Tue, 27 Jan 2009 17:10:22 -0500
- Organization: Rogue Research Inc.
On 1/27/09 3:24 PM, Jeremy Pereira said:
>> Leopard is little endian ( at least on
>> the intel chips, but I have read there are other macs that are
>> big-endian, so I am trying to catch and handle that accordingly)
>
>The endianness is dependent on the processor architecture, not the
>operating system. Intel Macs are little endian, but PowerPC Macs are
>big endian no matter which OS is running on them.
The PowerPC in fact can run as big or little endian, see:
<http://en.wikipedia.org/wiki/PowerPC#Endian_modes>
You can switch this setting in Open Firmware. Mac OS however only
supports the PPC in big endian mode.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden