C
Chris P
I am reading bytes from a serial port which come from a device which uses
the Big-Endian storage format. My question is, can I use the
BitConverter.ToDouble(bytearray, position) method to convert those bytes to
a double? In other words, will the system take into account that the byte
order needs to be swapped?
Conversely, I need to write longs and double to the serial device in
Big-Endian format. How would I do that?
Thanks,
Chris
the Big-Endian storage format. My question is, can I use the
BitConverter.ToDouble(bytearray, position) method to convert those bytes to
a double? In other words, will the system take into account that the byte
order needs to be swapped?
Conversely, I need to write longs and double to the serial device in
Big-Endian format. How would I do that?
Thanks,
Chris