in reply to unpack and byteorder - tests fail on certain platforms

the representation of floats and doubles varies depending on the processor architecture, and not just in the byte order but also on the number of bits used for the mantissa, exponent or how unnormalized and special numbers are handled.

You would need to code a packer/unpacker that understands the format used on the flash cookies (that is probably the x86 one).

Read the wikipedia article about IEEE_754.

  • Comment on Re: unpack and byteorder - tests fail on certain platforms