58 void writeString(
const std::string &
string,
int length = -1);
71 static char *
expand(
size_t size);
Used for building an outgoing message to eAthena.
void writeInt32(uint32_t value)
Writes an unsigned 32-bit integer to the message.
static char * expand(size_t size)
Expand the packet data to be able to hold more data.
void writeInt8(uint8_t value)
Writes an unsigned 8-bit integer to the message.
void writeInt16(uint16_t value)
Writes an unsigned 16-bit integer to the message.
void writeString(const std::string &string, int length=-1)
Writes a string.
void writeCoordinates(uint16_t x, uint16_t y, uint8_t direction)
Encodes coordinates and direction in 3 bytes.
Warning: buffers and other variables are shared, so there can be only one connection active at a time...