in reply to Re^2: Test and endianness
in thread Test and endianness

As to the floats (I figure those are the values tagged as "number"): I just tried it on a big-endian machine (Solaris/sparc, flashplayer 9.0.47.0), in addition to little-endian Linux/x86.  The results:

However, I so far haven't been able to test this with "more complex" floats, i.e. not just simple ints (like 50) represented as floats — mainly because I couldn't find a site which would set such a value... but I suppose it would work. (Do you have a link to a site which will make my flashplayer store numbers such as 726.127318273?)

___

1  Adobe++ for this, BTW — as it does allow you to share your home directory (~/.macromedia/) across multiple architectures.  (Early versions of Firefox got this wrong, for example, storing architecture-dependent stuff in your profile, which made the browser segfault when you switched from one platform to another... (now fixed) )

Replies are listed 'Best First'.
Re^4: Test and endianness
by andreas1234567 (Vicar) on Jan 16, 2008 at 19:05 UTC
    As to the floats (I figure those are the values tagged as "number")
    Yes. I tried to be consistent with other SOL tools, most of which call any kind of number just that, "number".
    Flashplayer apparently stores its cookies in the same format, independently of the architecture the player is running on (which confirms what GrandFather wrote).
    Thank you very much for this information. This probably means one can perform a reverse in the unpack depending on the value of $Config{byteorder}.
    Do you have a link to a site which will make my flashplayer store numbers such as 726.127318273?
    Currently not. But you can easily create your own, e.g. with the Sol editor (Win32 app, runs fine under Wine).
    --
    Andreas