• 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: float[4][3] into NSValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: float[4][3] into NSValue


  • Subject: Re: float[4][3] into NSValue
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 20 Nov 2007 13:32:34 -0700


On Nov 20, 2007, at 1:14 PM, Lorenzo wrote:

Thank you Allen, it worked like a charm. And this is a great news.
I can now store a lot of data in a single line. I suppose this is
endian-safe. It will work on Intel ad PPC. Right?
I mean, I can write values on Intel and read values on PPC and viceversa,
right?


Due to endian differences between the architectures, I would not make that assumption. Instead, I would swap the values from the host to either big-endian or little-endian before saving/sending/etc. and then swap them back upon loading/receiving/etc.

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

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


  • Follow-Ups:
    • Re: float[4][3] into NSValue
      • From: David Spooner <email@hidden>
References: 
 >Re: float[4][3] into NSValue (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: float[4][3] into NSValue
  • Next by Date: Re: Crash in System Preferences
  • Previous by thread: Re: float[4][3] into NSValue
  • Next by thread: Re: float[4][3] into NSValue
  • Index(es):
    • Date
    • Thread