62 void writeString(
const std::string &
string,
int length = -1);
Used for building an outgoing message to manaserv.
void writeInt16(uint16_t value)
Writes an unsigned 16-bit integer to the message.
bool mDebugMode
Include debugging information.
void writeInt32(uint32_t value)
Writes an unsigned 32-bit integer to the message.
void expand(size_t size)
Expand the packet data to be able to hold more data.
unsigned int mPos
Position in the data.
char * getData() const
Returns the content of the message.
void writeValueType(ManaServ::ValueType type)
unsigned int mDataSize
Size of data.
void writeInt8(uint8_t value)
Writes an unsigned 8-bit integer to the message.
void writeString(const std::string &string, int length=-1)
Writes a string.
char * mData
Data building up.
unsigned int getDataSize() const
Returns the length of the data.
ValueType
The type of a value in a message.