I have some structs that I write/read to and from disk, and they
have > 1 byte variables that need to be swapped.
My question is would you swap a type 'float' var just as you would
a UInt16?
Yes, since the byte ordering is likewise reversed. You just have to
be careful that an unexpected type conversion doesn't occur when
copying the float into a UInt32 so that it can be swapped. Maybe do
something like this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden