Lines Matching refs:m_bytes

413   size_t pkt_size = m_bytes.size();  in DecompressPacket()
421 if (m_bytes[0] != '$' && m_bytes[0] != '%') in DecompressPacket()
423 if (m_bytes[1] != 'C' && m_bytes[1] != 'N') in DecompressPacket()
426 size_t hash_mark_idx = m_bytes.find('#'); in DecompressPacket()
429 if (hash_mark_idx + 2 >= m_bytes.size()) in DecompressPacket()
432 if (!::isxdigit(m_bytes[hash_mark_idx + 1]) || in DecompressPacket()
433 !::isxdigit(m_bytes[hash_mark_idx + 2])) in DecompressPacket()
457 if (m_bytes[1] == 'C') { in DecompressPacket()
459 while (i < hash_mark_idx && isdigit(m_bytes[i])) in DecompressPacket()
461 if (i < hash_mark_idx && m_bytes[i] == ':') { in DecompressPacket()
465 std::string bufsize_str(m_bytes.data() + 2, i - 2 - 1); in DecompressPacket()
469 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
477 packet_checksum_cstr[0] = m_bytes[checksum_idx]; in DecompressPacket()
478 packet_checksum_cstr[1] = m_bytes[checksum_idx + 1]; in DecompressPacket()
483 llvm::StringRef(m_bytes).substr(1, hash_mark_idx - 1)); in DecompressPacket()
488 (int)(pkt_size), m_bytes.c_str(), (uint8_t)packet_checksum, in DecompressPacket()
494 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
501 if (m_bytes[1] == 'N') { in DecompressPacket()
504 m_bytes.erase(1, 1); in DecompressPacket()
514 if (m_bytes[i] == '}') { in DecompressPacket()
516 unescaped_content.push_back(m_bytes[i] ^ 0x20); in DecompressPacket()
518 unescaped_content.push_back(m_bytes[i]); in DecompressPacket()
529 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
609 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
615 new_packet.push_back(m_bytes[0]); in DecompressPacket()
629 m_bytes.replace(0, size_of_first_packet, new_packet.data(), in DecompressPacket()
650 m_bytes.append((const char *)src, src_len); in CheckForPacket()
656 if (!m_bytes.empty()) { in CheckForPacket()
665 size_t original_packet_size = m_bytes.size(); in CheckForPacket()
673 switch (m_bytes[0]) { in CheckForPacket()
687 size_t hash_pos = m_bytes.find('#'); in CheckForPacket()
689 if (hash_pos + 2 < m_bytes.size()) { in CheckForPacket()
712 const size_t bytes_len = m_bytes.size(); in CheckForPacket()
716 switch (m_bytes[idx]) { in CheckForPacket()
730 __FUNCTION__, idx - 1, idx - 1, m_bytes.c_str()); in CheckForPacket()
731 m_bytes.erase(0, idx - 1); in CheckForPacket()
741 assert(content_length <= m_bytes.size()); in CheckForPacket()
742 assert(total_length <= m_bytes.size()); in CheckForPacket()
758 if (m_bytes[0] == '$' && total_length > 4) { in CheckForPacket()
760 unsigned char c = m_bytes[i]; in CheckForPacket()
772 m_bytes[0]); in CheckForPacket()
775 (uint64_t)total_length, m_bytes[0]); in CheckForPacket()
778 const char ch = m_bytes[i]; in CheckForPacket()
782 const char escapee = m_bytes[++i] ^ 0x20; in CheckForPacket()
789 strm.Printf("%c%c%c", m_bytes[total_length - 3], in CheckForPacket()
790 m_bytes[total_length - 2], m_bytes[total_length - 1]); in CheckForPacket()
796 (int)(total_length), m_bytes.c_str()); in CheckForPacket()
800 m_bytes.c_str()); in CheckForPacket()
804 m_history.AddPacket(m_bytes, total_length, in CheckForPacket()
810 ExpandRLE(m_bytes.substr(content_start, content_end - content_start)); in CheckForPacket()
813 if (m_bytes[0] == '$' || m_bytes[0] == '%') { in CheckForPacket()
814 assert(checksum_idx < m_bytes.size()); in CheckForPacket()
815 if (::isxdigit(m_bytes[checksum_idx + 0]) || in CheckForPacket()
816 ::isxdigit(m_bytes[checksum_idx + 1])) { in CheckForPacket()
818 const char *packet_checksum_cstr = &m_bytes[checksum_idx]; in CheckForPacket()
821 llvm::StringRef(m_bytes).slice(content_start, content_end)); in CheckForPacket()
827 (int)(total_length), m_bytes.c_str(), in CheckForPacket()
839 m_bytes.c_str()); in CheckForPacket()
843 m_bytes.erase(0, total_length); in CheckForPacket()