Lines Matching refs:m_bytes
356 m_bytes.append ((const char *)src, src_len); in CheckForPacket()
360 if (!m_bytes.empty()) in CheckForPacket()
370 switch (m_bytes[0]) in CheckForPacket()
381 size_t hash_pos = m_bytes.find('#'); in CheckForPacket()
384 if (hash_pos + 2 < m_bytes.size()) in CheckForPacket()
410 const size_t bytes_len = m_bytes.size(); in CheckForPacket()
415 switch (m_bytes[idx]) in CheckForPacket()
430 __FUNCTION__, idx, idx, m_bytes.c_str()); in CheckForPacket()
431 m_bytes.erase(0, idx); in CheckForPacket()
445 assert (content_length <= m_bytes.size()); in CheckForPacket()
446 assert (total_length <= m_bytes.size()); in CheckForPacket()
462 … log->Printf ("<%4zu> read packet: %.*s", total_length, (int)(total_length), m_bytes.c_str()); in CheckForPacket()
465 … m_history.AddPacket (m_bytes.c_str(), total_length, History::ePacketTypeRecv, total_length); in CheckForPacket()
467 packet_str.assign (m_bytes, content_start, content_length); in CheckForPacket()
469 if (m_bytes[0] == '$') in CheckForPacket()
471 assert (checksum_idx < m_bytes.size()); in CheckForPacket()
472 if (::isxdigit (m_bytes[checksum_idx+0]) || in CheckForPacket()
473 ::isxdigit (m_bytes[checksum_idx+1])) in CheckForPacket()
477 const char *packet_checksum_cstr = &m_bytes[checksum_idx]; in CheckForPacket()
486 m_bytes.c_str(), in CheckForPacket()
501 log->Printf ("error: invalid checksum in packet: '%s'\n", m_bytes.c_str()); in CheckForPacket()
505 m_bytes.erase(0, total_length); in CheckForPacket()