Home
last modified time | relevance | path

Searched refs:m_packet (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DStdStringExtractor.cpp27 : m_packet(), m_index(0) { in StdStringExtractor()
29 m_packet.assign(packet_cstr); in StdStringExtractor()
36 if (m_index < m_packet.size()) { in GetChar()
37 char ch = m_packet[m_index]; in GetChar()
87 if (m_index < m_packet.size()) { in GetU32()
154 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU32()
164 if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU32()
178 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU32()
205 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU64()
215 if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU64()
[all …]
H A DStdStringExtractor.h35 m_packet.clear(); in Clear()
41 const std::string &GetStringRef() const { return m_packet; } in GetStringRef()
43 bool Empty() { return m_packet.empty(); } in Empty()
46 if (m_index < m_packet.size()) in GetBytesLeft()
47 return m_packet.size() - m_index; in GetBytesLeft()
91 if (m_index < m_packet.size()) in Peek()
92 return m_packet.c_str() + m_index; in Peek()
98 std::string m_packet; // The string in which to extract data.
H A DJSON.cpp389 value = m_packet.substr(start_index, m_index - start_index); in GetToken()
/llvm-project-15.0.7/lldb/source/Utility/
H A DStringExtractor.cpp37 m_packet.assign(packet_cstr); in StringExtractor()
44 if (m_index < m_packet.size()) { in GetChar()
45 char ch = m_packet[m_index]; in GetChar()
94 if (m_index < m_packet.size()) { in GetU32()
161 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU32()
171 if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU32()
185 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU32()
212 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU64()
222 if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU64()
236 while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) { in GetHexMaxU64()
[all …]
H A DStreamString.cpp18 : Stream(flags, addr_size, byte_order), m_packet() {} in StreamString()
27 m_packet.append(static_cast<const char *>(s), length); in WriteImpl()
32 m_packet.clear(); in Clear()
38 size_t StreamString::GetSize() const { return m_packet.size(); } in GetSize()
41 const size_t length = m_packet.size(); in GetSizeOfLastLine()
42 size_t last_line_begin_pos = m_packet.find_last_of("\r\n"); in GetSizeOfLastLine()
51 llvm::StringRef StreamString::GetString() const { return m_packet; } in GetString()
54 const size_t length = m_packet.size(); in FillLastLineToColumn()
55 size_t last_line_begin_pos = m_packet.find_last_of("\r\n"); in FillLastLineToColumn()
64 m_packet.append(column - line_columns, fill_char); in FillLastLineToColumn()
H A DStringExtractorGDBRemote.cpp19 if (m_packet.empty()) in GetResponseType()
22 switch (m_packet[0]) { in GetResponseType()
24 if (isxdigit(m_packet[1]) && isxdigit(m_packet[2])) { in GetResponseType()
25 if (m_packet.size() == 3) in GetResponseType()
27 llvm::StringRef packet_ref(m_packet); in GetResponseType()
39 if (m_packet.size() == 2 && m_packet[1] == 'K') in GetResponseType()
44 if (m_packet.size() == 1) in GetResponseType()
49 if (m_packet.size() == 1) in GetResponseType()
65 if (m_packet.empty()) in GetServerPacketType()
70 switch (m_packet[0]) { in GetServerPacketType()
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DStreamBuffer.h21 StreamBuffer() : Stream(0, 4, lldb::eByteOrderBig), m_packet() {} in StreamBuffer()
24 : Stream(flags, addr_size, byte_order), m_packet() {} in StreamBuffer()
32 void Clear() { m_packet.clear(); } in Clear()
38 const char *GetData() const { return m_packet.data(); } in GetData()
40 size_t GetSize() const { return m_packet.size(); } in GetSize()
43 llvm::SmallVector<char, N> m_packet;
47 m_packet.append((const char *)s, ((const char *)s) + length); in WriteImpl()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DStringExtractor.h29 m_packet = std::string(str); in Reset()
42 m_packet.clear(); in Clear()
48 llvm::StringRef GetStringRef() const { return m_packet; } in GetStringRef()
50 bool Empty() { return m_packet.empty(); } in Empty()
53 if (m_index < m_packet.size()) in GetBytesLeft()
54 return m_packet.size() - m_index; in GetBytesLeft()
101 if (m_index < m_packet.size()) in Peek()
102 return m_packet.c_str() + m_index; in Peek()
113 std::string m_packet; variable
H A DStreamString.h43 const char *GetData() const { return m_packet.c_str(); } in GetData()
48 std::string m_packet;