I'm deserializing a stream of binary Java data using x86 VC++ (constraints imposed by project specification) and am having a devil of a time correctly parsing the value of a serialzed double.
Assumptions:
- That a Java double is best represented by a VC++ x86 long double.
What I've tried:
- Straight deserialization and byteswapped deserialization. Neither return the correct value. (Able to deserialize integers fine once they're byteswapped big-endian to little-endian.)
- The Java serialization docs were no help.
What I fear:
- That the exponent and mantessa are each byte-swapped somehow.
Thanks in advance for the help.
Ken