MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / operator==

Method operator==

databuffer.cpp:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92bool DataBuffer::operator==(const DataBuffer& other) const
93{
94 uint8_t* data = (uint8_t*)GetData();
95 uint8_t* otherData = (uint8_t*)other.GetData();
96 if (GetLength() != other.GetLength())
97 return false;
98 if (data == otherData)
99 return true;
100
101 for (size_t i = 0; i < GetLength(); i++)
102 {
103 if (data[i] != otherData[i])
104 return false;
105 }
106 return true;
107}
108
109bool DataBuffer::operator!=(const DataBuffer& other) const
110{

Callers

nothing calls this directly

Calls 2

GetDataMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected