Re: "byte orders" question
Re: "byte orders" question
- Subject: Re: "byte orders" question
- From: Koen van der Drift <email@hidden>
- Date: Sun, 27 Nov 2011 08:06:23 -0500
On Nov 26, 2011, at 7:06 PM, Scott Ribe wrote:
> I think what you had before would work for the byte swap & conversion, assuming that your "result" was an array of floats; CFSwapInt32HostToBig is not really the right call--when it works it is by accident.
Thanks again Scott for thinking along.
I replaced:
res = CFSwapInt32BigToHost(value);
with:
res = ntohl((u_int32_t) ((u_int32_t *) value));
Again giving the same expected results. Would this be the correct call, or am I still missing something?
Thanks,
- Koen.
_______________________________________________
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