Example #1
0
 public static void WRITE_FLOAT(float fvalue)
 {
     byte[] array = NET.EncodeFloat(fvalue);
     NET.sendbuffer[NET.writepos]     = array[0];
     NET.sendbuffer[NET.writepos + 1] = array[1];
     NET.sendbuffer[NET.writepos + 2] = array[2];
     NET.sendbuffer[NET.writepos + 3] = array[3];
     NET.writepos += 4;
 }