root/trunk/raknet/rakglue/rakbitstream.h

Revision 25, 1.4 kB (checked in by clayasaurus, 6 years ago)

raknet now works on windows, sources, minibugfix

Line 
1 #include <stdio.h> // Printf and gets
2 #include <string.h> // strcpy
3 #include "RakClientInterface.h"
4 #include "RakNetworkFactory.h"
5 #include "BitStream.h"
6 #include "RakServerInterface.h"
7 #include "PacketEnumerations.h"
8 #include <cassert>
9
10 #ifndef _RAKBITSTREAM_
11 #define _RAKBITSTREAM_
12
13 extern "C"
14 {
15 // start and end using the bitstream
16 void rakBitstream_start1();
17 void rakBitstream_start2(int initialBytes);
18 void rakBitstream_start3(char *_data, unsigned lengthInBytes, bool _copyData);
19 void rakBitstream_end();
20
21 // write
22 void  rakBitstream_Write1 (bool input);
23 void  rakBitstream_Write2 (unsigned char input);
24 void  rakBitstream_Write3 (char input);
25 void  rakBitstream_Write4 (unsigned short input);
26 void  rakBitstream_Write5 (short input);
27 void  rakBitstream_Write6 (unsigned int input);
28 void  rakBitstream_Write7 (int input);
29 void  rakBitstream_Write8 (float input);
30 void  rakBitstream_Write9 (double input);
31 void  rakBitstream_Write10 (char *input, int numberOfBytes);
32
33
34 // read
35 bool  rakBitstream_Read1 (bool &output);
36 bool  rakBitstream_Read2 (unsigned char &output);
37 bool  rakBitstream_Read3 (char &output);
38 bool  rakBitstream_Read4 (unsigned short &output);
39 bool  rakBitstream_Read5 (short &output);
40 bool  rakBitstream_Read6 (unsigned int &output);
41 bool  rakBitstream_Read7 (int &output);
42 bool  rakBitstream_Read8 (float &output);
43 bool  rakBitstream_Read9 (double &output);
44 bool  rakBitstream_Read10 (char *output, int numberOfBytes);
45
46 }
47
48 #endif
Note: See TracBrowser for help on using the browser.