Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6219 in orxonox.OLD for branches/network/src/lib/network/converter.h


Ignore:
Timestamp:
Dec 21, 2005, 1:39:20 PM (18 years ago)
Author:
rennerc
Message:

network_game_manager: implemented some functions

File:
1 edited

Legend:

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

    r6197 r6219  
    33 *  Is able to convert int to byte-array and vice versa
    44 */
    5  
     5
    66#ifndef _CONVERTER
    77#define _CONVERTER
     
    2323  public:
    2424    static byte* intToByteArray(int x);
    25     static int byteArrayToInt(byte* a);
    26    
     25    static int byteArrayToInt(const byte* a);
     26
    2727    //byte* floatToByteArray(float x);
    2828    //float byteArrayToFloat(byte[] a);
    29    
     29
    3030    //Test
    3131    static char* floatToBinString(float x);
    32    
     32
    3333    static byte* floatToByteArray(float x);
    3434    static float byteArrayToFloat(byte* a);
    35    
     35
    3636    static byte* _floatToByteArray(float x);
    3737    static float _byteArrayToFloat(byte* a);
Note: See TracChangeset for help on using the changeset viewer.