40 int len = buffer.size();
43 memcpy((
char*)(m_buffer + m_writePos), buffer.c_str(), len);
51 m_buffer[m_writePos] = value;
82 int len = buffer.length();
87 memcpy((
char*)(m_buffer + m_writePos), buffer.c_str(), len);
97 memset((
void*)&m_buffer[m_writePos],
byte, bytes);
99 m_messageSize += bytes;
105 if(m_messageSize < size)
115 assert(m_headerPos - 4 >= 0);
123 assert(m_headerPos - 2 >= 0);
129 bool OutputMessage::canWrite(
int bytes)
136 void OutputMessage::checkWrite(
int bytes)