Lines Matching refs:m_bytes
101 EventDataBytes::EventDataBytes() : m_bytes() {} in EventDataBytes()
103 EventDataBytes::EventDataBytes(const char *cstr) : m_bytes() { in EventDataBytes()
107 EventDataBytes::EventDataBytes(llvm::StringRef str) : m_bytes() { in EventDataBytes()
111 EventDataBytes::EventDataBytes(const void *src, size_t src_len) : m_bytes() { in EventDataBytes()
128 std::count_if(m_bytes.begin(), m_bytes.end(), llvm::isPrint); in Dump()
129 if (num_printable_chars == m_bytes.size()) in Dump()
130 s->Format("\"{0}\"", m_bytes); in Dump()
133 reinterpret_cast<const uint8_t *>(m_bytes.data()), in Dump()
134 reinterpret_cast<const uint8_t *>(m_bytes.data() + in Dump()
135 m_bytes.size()))); in Dump()
139 return (m_bytes.empty() ? nullptr : m_bytes.data()); in GetBytes()
142 size_t EventDataBytes::GetByteSize() const { return m_bytes.size(); } in GetByteSize()
146 m_bytes.assign(static_cast<const char *>(src), src_len); in SetBytes()
148 m_bytes.clear(); in SetBytes()
153 m_bytes.assign(cstr); in SetBytesFromCString()
155 m_bytes.clear(); in SetBytesFromCString()
184 m_bytes.swap(new_bytes); in SwapBytes()