Changeset 6219 in orxonox.OLD for branches/network/src/lib/network/converter.h
- Timestamp:
- Dec 21, 2005, 1:39:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/converter.h
r6197 r6219 3 3 * Is able to convert int to byte-array and vice versa 4 4 */ 5 5 6 6 #ifndef _CONVERTER 7 7 #define _CONVERTER … … 23 23 public: 24 24 static byte* intToByteArray(int x); 25 static int byteArrayToInt( byte* a);26 25 static int byteArrayToInt(const byte* a); 26 27 27 //byte* floatToByteArray(float x); 28 28 //float byteArrayToFloat(byte[] a); 29 29 30 30 //Test 31 31 static char* floatToBinString(float x); 32 32 33 33 static byte* floatToByteArray(float x); 34 34 static float byteArrayToFloat(byte* a); 35 35 36 36 static byte* _floatToByteArray(float x); 37 37 static float _byteArrayToFloat(byte* a);
Note: See TracChangeset
for help on using the changeset viewer.