On 10/30/09 4:56 PM, gMail.com said:
>In the past I have successfully used EndianU32_NtoB to read a "long" on a
>PPC machine. Now I need to read and write an array of "unsigned int" and an
>array of "float". May you please tell me how to do?
For floats Apple provides no API, but you can use a union like this:
Then swap the int part with the int swapping APIs.
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