4 ms·
To me this just sounds like an endianness nightmare waiting to happen.
by HappMacDonald 1y ago
To me this just sounds like an endianness nightmare waiting to happen.
- dwattttt 1y agoYou do have to be aware of endianness, although it's really not hard to handle it: pick one. Your code always knows what endian the file format is, so it always knows how to read it.
- mort96 1y agoJust add this to your serialiser and deserialiser: if (nativeEndianness != littleEndian) swapBytes(&theFloat); It's really, really not hard in comparison to parsing and serialising textual floats.