• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare (From: William Jon Shipley <email@hidden>)
 >Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare (From: Adam Venturella <email@hidden>)
 >Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 6, Issue 154
  • Next by Date: Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
  • Previous by thread: Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
  • Next by thread: Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare
  • Index(es):
    • Date
    • Thread