Skip navigation.
 
mlRe: float[4][3] into NSValue
FROM : Nick Zitzmann
DATE : Tue Nov 20 21:32:34 2007

On Nov 20, 2007, at 1:14 PM, Lorenzo wrote:

> Thank you Allen, it worked like a charm. And this is a great news.
> I can now store a lot of data in a single line. I suppose this is
> endian-safe. It will work on Intel ad PPC. Right?
> I mean, I can write values on Intel and read values on PPC and 
> viceversa,
> right?



Due to endian differences between the architectures, I would not make 
that assumption. Instead, I would swap the values from the host to 
either big-endian or little-endian before saving/sending/etc. and then 
swap them back upon loading/receiving/etc.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlfloat[4][3] into NSValue Lorenzo Nov 20, 20:16
mlRe: float[4][3] into NSValue Hank Heijink Nov 20, 20:37
mlRe: float[4][3] into NSValue Paul Sargent Nov 20, 20:37
mlRe: float[4][3] into NSValue Allen Smith Nov 20, 20:57
mlRe: float[4][3] into NSValue Paul Sargent Nov 20, 20:59
mlRe: float[4][3] into NSValue Lorenzo Nov 20, 21:14
mlRe: float[4][3] into NSValue Nick Zitzmann Nov 20, 21:32
mlRe: float[4][3] into NSValue David Spooner Nov 20, 21:50
mlRe: float[4][3] into NSValue Ricky Sharp Nov 20, 22:42
mlRe: float[4][3] into NSValue David Spooner Nov 21, 01:04