23 PStatServerControlMessage::
24 PStatServerControlMessage() {
44 <<
"Invalid PStatServerControlMessage::Type " << (int)_type <<
"\n";
66 <<
"Read invalid PStatServerControlMessage type: " << (int)_type <<
"\n";
void encode(Datagram &datagram) const
Writes the message into the indicated datagram.
uint8_t get_uint8()
Extracts an unsigned 8-bit integer.
bool decode(const Datagram &datagram)
Extracts the message from the indicated datagram.
virtual void clear()
Resets the datagram to empty, in preparation for building up a new datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::string get_string()
Extracts a variable-length string.
void add_uint16(uint16_t value)
Adds an unsigned 16-bit integer to the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void add_string(const std::string &str)
Adds a variable-length string to the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
uint16_t get_uint16()
Extracts an unsigned 16-bit integer.
void add_uint8(uint8_t value)
Adds an unsigned 8-bit integer to the datagram.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...