50 typedef bool (
Packet::*BoolType)(std::size_t);
78 void append(
const void* data, std::size_t sizeInBytes);
184 operator BoolType()
const;
331 Packet& operator <<(
const std::string& data);
336 Packet& operator <<(
const wchar_t* data);
341 Packet& operator <<(
const std::wstring& data);
371 virtual const void*
onSend(std::size_t& size);
390 virtual void onReceive(
const void* data, std::size_t size);
398 bool operator ==(
const Packet& right)
const;
399 bool operator !=(
const Packet& right)
const;
411 bool checkSize(std::size_t size);
416 std::vector<char> m_data;
417 std::size_t m_readPos;
418 std::size_t m_sendPos;