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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to