temp_man
10/03/2019, 6:44 PMstreetsofboston
10/03/2019, 6:47 PMByteBuffer
. Fill it with the bytes (eg wrap a ByteBuffer around a byte-array), then read in order using ByteBuffer.getFloat()
.temp_man
10/03/2019, 6:56 PMstreetsofboston
10/03/2019, 6:57 PMtemp_man
10/03/2019, 6:58 PMstreetsofboston
10/03/2019, 6:58 PMtemp_man
10/03/2019, 7:00 PMstreetsofboston
10/03/2019, 7:01 PMtemp_man
10/03/2019, 7:02 PMstreetsofboston
10/03/2019, 7:04 PMgetFloat()
on the ByteBuffer
?temp_man
10/03/2019, 8:39 PMstreetsofboston
10/03/2019, 8:45 PMByteBuffer.getFloat()
assumes a certain endian-ness. That can differ per platform/client. For phones, it is usually little-endianness, but that is not guaranteed.
In your case, since you had to swap the bytes, it seems the platform assumed big-endiannesstemp_man
10/03/2019, 8:46 PMstreetsofboston
10/03/2019, 9:24 PMtemp_man
10/03/2019, 9:28 PMstreetsofboston
10/03/2019, 9:35 PM