Lines Matching refs:m_bytes
418 size_t pkt_size = m_bytes.size(); in DecompressPacket()
426 if (m_bytes[0] != '$' && m_bytes[0] != '%') in DecompressPacket()
428 if (m_bytes[1] != 'C' && m_bytes[1] != 'N') in DecompressPacket()
431 size_t hash_mark_idx = m_bytes.find('#'); in DecompressPacket()
434 if (hash_mark_idx + 2 >= m_bytes.size()) in DecompressPacket()
437 if (!::isxdigit(m_bytes[hash_mark_idx + 1]) || in DecompressPacket()
438 !::isxdigit(m_bytes[hash_mark_idx + 2])) in DecompressPacket()
462 if (m_bytes[1] == 'C') { in DecompressPacket()
464 while (i < hash_mark_idx && isdigit(m_bytes[i])) in DecompressPacket()
466 if (i < hash_mark_idx && m_bytes[i] == ':') { in DecompressPacket()
470 std::string bufsize_str(m_bytes.data() + 2, i - 2 - 1); in DecompressPacket()
474 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
482 packet_checksum_cstr[0] = m_bytes[checksum_idx]; in DecompressPacket()
483 packet_checksum_cstr[1] = m_bytes[checksum_idx + 1]; in DecompressPacket()
488 llvm::StringRef(m_bytes).substr(1, hash_mark_idx - 1)); in DecompressPacket()
493 (int)(pkt_size), m_bytes.c_str(), (uint8_t)packet_checksum, in DecompressPacket()
499 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
506 if (m_bytes[1] == 'N') { in DecompressPacket()
509 m_bytes.erase(1, 1); in DecompressPacket()
519 if (m_bytes[i] == '}') { in DecompressPacket()
521 unescaped_content.push_back(m_bytes[i] ^ 0x20); in DecompressPacket()
523 unescaped_content.push_back(m_bytes[i]); in DecompressPacket()
534 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
614 m_bytes.erase(0, size_of_first_packet); in DecompressPacket()
620 new_packet.push_back(m_bytes[0]); in DecompressPacket()
634 m_bytes.replace(0, size_of_first_packet, new_packet.data(), in DecompressPacket()
655 m_bytes.append((const char *)src, src_len); in CheckForPacket()
661 if (!m_bytes.empty()) { in CheckForPacket()
670 size_t original_packet_size = m_bytes.size(); in CheckForPacket()
678 switch (m_bytes[0]) { in CheckForPacket()
692 size_t hash_pos = m_bytes.find('#'); in CheckForPacket()
694 if (hash_pos + 2 < m_bytes.size()) { in CheckForPacket()
717 const size_t bytes_len = m_bytes.size(); in CheckForPacket()
721 switch (m_bytes[idx]) { in CheckForPacket()
735 __FUNCTION__, idx - 1, idx - 1, m_bytes.c_str()); in CheckForPacket()
736 m_bytes.erase(0, idx - 1); in CheckForPacket()
746 assert(content_length <= m_bytes.size()); in CheckForPacket()
747 assert(total_length <= m_bytes.size()); in CheckForPacket()
763 if (m_bytes[0] == '$' && total_length > 4) { in CheckForPacket()
765 unsigned char c = m_bytes[i]; in CheckForPacket()
777 m_bytes[0]); in CheckForPacket()
780 (uint64_t)total_length, m_bytes[0]); in CheckForPacket()
783 const char ch = m_bytes[i]; in CheckForPacket()
787 const char escapee = m_bytes[++i] ^ 0x20; in CheckForPacket()
794 strm.Printf("%c%c%c", m_bytes[total_length - 3], in CheckForPacket()
795 m_bytes[total_length - 2], m_bytes[total_length - 1]); in CheckForPacket()
801 (int)(total_length), m_bytes.c_str()); in CheckForPacket()
805 m_bytes.c_str()); in CheckForPacket()
809 m_history.AddPacket(m_bytes, total_length, in CheckForPacket()
815 ExpandRLE(m_bytes.substr(content_start, content_end - content_start)); in CheckForPacket()
818 if (m_bytes[0] == '$' || m_bytes[0] == '%') { in CheckForPacket()
819 assert(checksum_idx < m_bytes.size()); in CheckForPacket()
820 if (::isxdigit(m_bytes[checksum_idx + 0]) || in CheckForPacket()
821 ::isxdigit(m_bytes[checksum_idx + 1])) { in CheckForPacket()
823 const char *packet_checksum_cstr = &m_bytes[checksum_idx]; in CheckForPacket()
826 llvm::StringRef(m_bytes).slice(content_start, content_end)); in CheckForPacket()
832 (int)(total_length), m_bytes.c_str(), in CheckForPacket()
844 m_bytes.c_str()); in CheckForPacket()
848 m_bytes.erase(0, total_length); in CheckForPacket()