| 90 | } |
| 91 | |
| 92 | bool 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 | |
| 109 | bool DataBuffer::operator!=(const DataBuffer& other) const |
| 110 | { |