43 #ifndef _networkpacket_h
44 #define _networkpacket_h
61 std::vector<char> RawData;
65 bool VerifySize(
const size_t& Bytes)
const;
76 virtual void Append(
const void* Data,
size_t Bytes);
82 virtual size_t GetPacketSize()
const;
85 virtual bool EndOfPacket()
const;
88 virtual const std::vector<char>& GetRawData()
const;
93 Packet& operator >>(
bool& Data);
97 Packet& operator >>(
Int8& Data);
101 Packet& operator >>(
UInt8& Data);
105 Packet& operator >>(
Int16& Data);
109 Packet& operator >>(
UInt16& Data);
113 Packet& operator >>(
Int32& Data);
117 Packet& operator >>(
UInt32& Data);
121 Packet& operator >>(
float& Data);
125 Packet& operator >>(
double& Data);
131 Packet& operator >>(
char* Data);
135 Packet& operator >>(
String& Data);
141 Packet& operator >>(
wchar_t* Data);
149 Packet& operator >>(const UTF16String& Data);
153 Packet& operator >>(const UTF32String& Data);*/
157 Packet& operator <<(
const bool Data);
161 Packet& operator <<(
const Int8 Data);
165 Packet& operator <<(
const UInt8 Data);
169 Packet& operator <<(
Int16 Data);
173 Packet& operator <<(
UInt16 Data);
177 Packet& operator <<(
Int32 Data);
181 Packet& operator <<(
UInt32 Data);
185 Packet& operator <<(
const float Data);
189 Packet& operator <<(
const double Data);
193 Packet& operator <<(
const char* Data);
197 Packet& operator <<(
const String& Data);
201 Packet& operator <<(
const wchar_t* Data);
209 Packet& operator <<(const UTF16String& Data);
213 Packet& operator <<(const UTF32String& Data);*/