Lines Matching refs:m_bytes

393   size_t pkt_size = m_bytes.size();  in DecompressPacket()
401 if (m_bytes[0] != '$' && m_bytes[0] != '%') in DecompressPacket()
403 if (m_bytes[1] != 'C' && m_bytes[1] != 'N') in DecompressPacket()
406 size_t hash_mark_idx = m_bytes.find('#'); in DecompressPacket()
409 if (hash_mark_idx + 2 >= m_bytes.size()) in DecompressPacket()
412 if (!::isxdigit(m_bytes[hash_mark_idx + 1]) || in DecompressPacket()
413 !::isxdigit(m_bytes[hash_mark_idx + 2])) in DecompressPacket()
437 if (m_bytes[1] == 'C') { in DecompressPacket()
439 while (i < hash_mark_idx && isdigit(m_bytes[i])) in DecompressPacket()
441 if (i < hash_mark_idx && m_bytes[i] == ':') { in DecompressPacket()
445 std::string bufsize_str(m_bytes.data() + 2, i - 2 - 1); in DecompressPacket()
449 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
457 packet_checksum_cstr[0] = m_bytes[checksum_idx]; in DecompressPacket()
458 packet_checksum_cstr[1] = m_bytes[checksum_idx + 1]; in DecompressPacket()
463 llvm::StringRef(m_bytes).substr(1, hash_mark_idx - 1)); in DecompressPacket()
468 (int)(pkt_size), m_bytes.c_str(), (uint8_t)packet_checksum, in DecompressPacket()
474 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
481 if (m_bytes[1] == 'N') { in DecompressPacket()
484 m_bytes.erase(1, 1); in DecompressPacket()
494 if (m_bytes[i] == '}') { in DecompressPacket()
496 unescaped_content.push_back(m_bytes[i] ^ 0x20); in DecompressPacket()
498 unescaped_content.push_back(m_bytes[i]); in DecompressPacket()
509 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
589 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
595 new_packet.push_back(m_bytes[0]); in DecompressPacket()
609 m_bytes.replace(0, size_of_first_packet, new_packet.data(), in DecompressPacket()
630 m_bytes.append((const char *)src, src_len); in CheckForPacket()
636 if (!m_bytes.empty()) { in CheckForPacket()
645 size_t original_packet_size = m_bytes.size(); in CheckForPacket()
653 switch (m_bytes[0]) { in CheckForPacket()
667 size_t hash_pos = m_bytes.find('#'); in CheckForPacket()
669 if (hash_pos + 2 < m_bytes.size()) { in CheckForPacket()
692 const size_t bytes_len = m_bytes.size(); in CheckForPacket()
696 switch (m_bytes[idx]) { in CheckForPacket()
710 __FUNCTION__, idx - 1, idx - 1, m_bytes.c_str()); in CheckForPacket()
711 m_bytes.erase(0, idx - 1); in CheckForPacket()
721 assert(content_length <= m_bytes.size()); in CheckForPacket()
722 assert(total_length <= m_bytes.size()); in CheckForPacket()
738 if (m_bytes[0] == '$' && total_length > 4) { in CheckForPacket()
740 unsigned char c = m_bytes[i]; in CheckForPacket()
752 m_bytes[0]); in CheckForPacket()
755 (uint64_t)total_length, m_bytes[0]); in CheckForPacket()
758 const char ch = m_bytes[i]; in CheckForPacket()
762 const char escapee = m_bytes[++i] ^ 0x20; in CheckForPacket()
769 strm.Printf("%c%c%c", m_bytes[total_length - 3], in CheckForPacket()
770 m_bytes[total_length - 2], m_bytes[total_length - 1]); in CheckForPacket()
776 (int)(total_length), m_bytes.c_str()); in CheckForPacket()
780 m_bytes.c_str()); in CheckForPacket()
784 m_history.AddPacket(m_bytes, total_length, in CheckForPacket()
790 ExpandRLE(m_bytes.substr(content_start, content_end - content_start)); in CheckForPacket()
793 if (m_bytes[0] == '$' || m_bytes[0] == '%') { in CheckForPacket()
794 assert(checksum_idx < m_bytes.size()); in CheckForPacket()
795 if (::isxdigit(m_bytes[checksum_idx + 0]) || in CheckForPacket()
796 ::isxdigit(m_bytes[checksum_idx + 1])) { in CheckForPacket()
798 const char *packet_checksum_cstr = &m_bytes[checksum_idx]; in CheckForPacket()
801 llvm::StringRef(m_bytes).slice(content_start, content_end)); in CheckForPacket()
807 (int)(total_length), m_bytes.c_str(), in CheckForPacket()
819 m_bytes.c_str()); in CheckForPacket()
823 m_bytes.erase(0, total_length); in CheckForPacket()