Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6229 in orxonox.OLD


Ignore:
Timestamp:
Dec 21, 2005, 2:55:55 PM (18 years ago)
Author:
bwuest
Message:

converter.h and converter.cc!

Location:
branches/network/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/converter.cc

    r6228 r6229  
    374374 * @return: A float value which accords the given byte-array
    375375 */
    376 int Converter::byteArrayToFloat(byte* a, float* x)
     376int Converter::byteArrayToFloat(const byte* a, float* x)
    377377{
    378378  int hmant = a[0] + a[1] * 256 + a[2] * 65536;
  • branches/network/src/lib/network/converter.h

    r6228 r6229  
    3030    static int byteArrayToInt(const byte* a, int* x);
    3131
    32     static int floatToByteArray(float x, const byte* a, int length);
     32    static int floatToByteArray(float x, byte* a, int length);
    3333    static int byteArrayToFloat(const byte* a, float* x);
    3434   
Note: See TracChangeset for help on using the changeset viewer.