Changeset 6229 in orxonox.OLD for branches/network/src
- Timestamp:
- Dec 21, 2005, 2:55:55 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/converter.cc
r6228 r6229 374 374 * @return: A float value which accords the given byte-array 375 375 */ 376 int Converter::byteArrayToFloat( byte* a, float* x)376 int Converter::byteArrayToFloat(const byte* a, float* x) 377 377 { 378 378 int hmant = a[0] + a[1] * 256 + a[2] * 65536; -
branches/network/src/lib/network/converter.h
r6228 r6229 30 30 static int byteArrayToInt(const byte* a, int* x); 31 31 32 static int floatToByteArray(float x, constbyte* a, int length);32 static int floatToByteArray(float x, byte* a, int length); 33 33 static int byteArrayToFloat(const byte* a, float* x); 34 34
Note: See TracChangeset
for help on using the changeset viewer.