39 MessageIn(
const char *data,
unsigned int length);
Used for parsing an incoming message from manaserv.
bool readValueType(ManaServ::ValueType type)
uint16_t readInt16()
Reads an unsigned 16-bit integer from the message.
unsigned int mLength
The length of the data.
unsigned int getUnreadLength() const
Returns the length of unread data.
const char * mData
The message data.
unsigned int mPos
Actual position in the packet.
std::string readString(int length=-1)
Reads a string.
unsigned int getLength() const
Returns the message length.
uint16_t getId() const
Returns the message ID.
bool mDebugMode
Includes debugging information.
uint32_t readInt32()
Reads an unsigned 32-bit integer from the message.
uint8_t readInt8()
Reads an unsigned 8-bit integer from the message.
unsigned short mId
The message ID.
ValueType
The type of a value in a message.