• 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: EndianU32_NtoB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EndianU32_NtoB


  • Subject: Re: EndianU32_NtoB
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 30 Oct 2009 17:20:16 -0700

On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride <email@hidden> wrote:
> Ah yes, I forgot about those... But I've found them not useful in
> practice.  I don't get why for ints they have host<->big, host<->little,
> etc. for the floats they don't.  Instead they have those weird host<-
>>swapped.  And though they take floats, they return structs.  Odd.

Probably because the intent is to use them for network communication
or other serialization.  So you "encode" a float into a Swapped struct
on the way out, and "decode" it back into a float on the other end.

--Kyle Sluder
_______________________________________________

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: EndianU32_NtoB
      • From: "Sean McBride" <email@hidden>
References: 
 >EndianU32_NtoB (From: "gMail.com" <email@hidden>)
 >Re: EndianU32_NtoB (From: "Sean McBride" <email@hidden>)
 >Re: EndianU32_NtoB (From: Kyle Sluder <email@hidden>)
 >Re: EndianU32_NtoB (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Tab View Issue
  • Next by Date: Re: EndianU32_NtoB
  • Previous by thread: Re: EndianU32_NtoB
  • Next by thread: Re: EndianU32_NtoB
  • Index(es):
    • Date
    • Thread