MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / operator==

Method operator==

src/ByteArrayUtils.h:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 qsizetype size() const { return m_size; }
36 bool isEmpty() const { return m_size == 0; }
37 bool operator==(const QByteArrayView& other) const
38 {
39 return m_size == other.m_size && (m_data == other.m_data || (m_size > 0 && std::memcmp(m_data, other.m_data, m_size) == 0));
40 }
41 bool operator!=(const QByteArrayView& other) const { return !(*this == other); }
42
43private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected